ae
This commit is contained in:
@@ -5,7 +5,6 @@ namespace Database;
|
|||||||
|
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Snowflake\Abstracts\Component;
|
|
||||||
use Snowflake\Abstracts\Providers;
|
use Snowflake\Abstracts\Providers;
|
||||||
use Snowflake\Application;
|
use Snowflake\Application;
|
||||||
use Snowflake\Exception\ConfigException;
|
use Snowflake\Exception\ConfigException;
|
||||||
|
|||||||
@@ -114,60 +114,63 @@
|
|||||||
//
|
//
|
||||||
//var_dump($match);
|
//var_dump($match);
|
||||||
//
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//class Arrays extends ArrayIterator
|
||||||
|
//{
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// public function __construct($array = array(), $flags = 0)
|
||||||
|
// {
|
||||||
|
// parent::__construct($array, $flags);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// public function current()
|
||||||
|
// {
|
||||||
|
// $parent = parent::current();
|
||||||
|
// $class = new stdClass();
|
||||||
|
// $class->value = $parent;
|
||||||
|
// $class->key = $this->key();
|
||||||
|
//
|
||||||
|
// return $class;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// public function next()
|
||||||
|
// {
|
||||||
|
// $this->offsetSet($this->key(), new stdClass());
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// parent::next();
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//class ETa implements \IteratorAggregate
|
||||||
|
//{
|
||||||
|
//
|
||||||
|
// public $array = [];
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// public function getIterator()
|
||||||
|
// {
|
||||||
|
// return new Arrays($this->array);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//$eta = new ETa();
|
||||||
|
//$eta->array = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//foreach ($eta as $value) {
|
||||||
|
// var_dump($value);
|
||||||
|
//}
|
||||||
|
|
||||||
|
exec('ps -ef 15132 | grep 15132', $output);
|
||||||
class Arrays extends ArrayIterator
|
var_dump($output);
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
public function __construct($array = array(), $flags = 0)
|
|
||||||
{
|
|
||||||
parent::__construct($array, $flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function current()
|
|
||||||
{
|
|
||||||
$parent = parent::current();
|
|
||||||
$class = new stdClass();
|
|
||||||
$class->value = $parent;
|
|
||||||
$class->key = $this->key();
|
|
||||||
|
|
||||||
return $class;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function next()
|
|
||||||
{
|
|
||||||
$this->offsetSet($this->key(), new stdClass());
|
|
||||||
|
|
||||||
|
|
||||||
parent::next();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class ETa implements \IteratorAggregate
|
|
||||||
{
|
|
||||||
|
|
||||||
public $array = [];
|
|
||||||
|
|
||||||
|
|
||||||
public function getIterator()
|
|
||||||
{
|
|
||||||
return new Arrays($this->array);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$eta = new ETa();
|
|
||||||
$eta->array = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
|
|
||||||
|
|
||||||
|
|
||||||
foreach ($eta as $value) {
|
|
||||||
var_dump($value);
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user