Created
March 19, 2019 15:04
-
-
Save danielpotthast/fc88cf0a4bd3c60c36dc15137d88f9c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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