Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- What does (array) do in php?
- stdClass Object (
- [ExampleCentre] => Array (
- [0] => stdClass Object (
- [ID] => 14
- [Name] => mycity
- [Code] => exm
- [Email] => [email protected]
- [FB] =>
- [Address1] => Exm, example
- [City] => Hakuna Matata
- [PostCode] => 000000
- [County] =>
- [Fax] => Fax
- [Telephone] => 000222888
- [Location] => 01.000000,-0.00004
- [URL] => /holla/hakuna/example
- )
- $obj = new stdClass;
- $obj->foo = 'value1';
- $obj->bar = 'value2';
- var_dump((array) $obj);
- array(2) {
- ["foo"]=>
- string(6) "value1"
- ["bar"]=>
- string(6) "value2"
- }
Advertisement
Add Comment
Please, Sign In to add comment