$value
$value :
Standard object abstract class.
Extend this class when you want to create your own standard object.
implode(string $glue, string $key = null) : string
The method joins the items in a collection.
string | $glue | The string you wish to place between the values. |
string | $key | If the value contains arrays or objects, you should pass the key of the attributes you wish to join |
key(string|integer|\app\framework\Component\StdLib\StdObject\StringObject\StringObject $key, null|mixed $value = null, boolean $setOnlyIfDoesntExist = false) : $this|mixed|\app\framework\Component\StdLib\StdObject\StringObject\StringObject
Get or update the given key inside current array.
string|integer|\app\framework\Component\StdLib\StdObject\StringObject\StringObject | $key | Array key |
null|mixed | $value | If set, the value under current $key will be updated and not returned. |
boolean | $setOnlyIfDoesntExist | Set the $value only in case if the $key doesn't exist. |
The value of the given key.
map(callable $call) : \app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject
The method iterates through the array and passes each value to the given callback. The callback is free to modify the item and return it, thus forming a new ArrayObject of modified items
callable | $call |
merge(array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject $array) : $this
Merge given $array with current array.
array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject | $array |
mergeRecursive(array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject $array) : $this
Merge given $array with current array.
array|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject | $array |
rand(integer $num = 1) : \app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject
integer | $num |
unique(integer $sortFlag = SORT_REGULAR) : $this
Removes duplicate values from an array
integer | $sortFlag | Sorting type flags: |
sortUsingFunction(callable $comparisonFunction) : $this
Sort an array by values using a user-defined comparison function<br /> This function assigns new keys to the elements in array. It will remove any existing keys that may have been assigned, rather than just reordering the keys.<br /> The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
callable | $comparisonFunction |
isSerialized(string $value, mixed $result = null) : boolean
Checks if a string is serialized using quick string manipulation to throw out obviously incorrect strings. Unserialize is then run on the string to perform the final verification.
Valid serialized forms are the following:
b:1;
i:1;
d:0.2;
s:4:"test";
a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}
O:8:"stdClass":0:{}
N;
string | $value | Value to test for serialized form |
mixed | $result | Result of unserialize() of the $value |
True if $value is serialized data, otherwise false
arr(array $array = array()) : \app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject
Creates an instance of Array Standard Object.
array | $array |
datetime(string|integer $time = "now", null|string $timezone = null) : \app\framework\Component\StdLib\StdObject\DateTimeObject\DateTimeObject
Create an instance of DateTime Standard Object.
string|integer | $time | A date/time string. List of available formats is explained here http://www.php.net/manual/en/datetime.formats.php |
null|string | $timezone | Timezone in which you want to set the date. Here is a list of valid timezones: http://php.net/manual/en/timezones.php |
str(string $string) : \app\framework\Component\StdLib\StdObject\StringObject\StringObject
Creates an instance of String Standard Object.
string | $string |
url(string $url) : \app\framework\Component\StdLib\StdObject\UrlObject\UrlObject
Creates an instance of Url Standard Object.
string | $url |