Skip to content

Instantly share code, notes, and snippets.

@danielpotthast
Created March 19, 2019 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielpotthast/fc88cf0a4bd3c60c36dc15137d88f9c8 to your computer and use it in GitHub Desktop.
Save danielpotthast/fc88cf0a4bd3c60c36dc15137d88f9c8 to your computer and use it in GitHub Desktop.
<?php
class data
{
private $data;
public function __construct($data)
{
$this->data = $data;
}
public function get()
{
$fp = array();
foreach ($this->data as $o) {
if ($o->bList == 1) { // What is bList?
$fp[] = $o;
}
}
return $fp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment