MemoryRefresh!

Variables / New object   New object



Questions Answers 0%

Pages   0 from 91
Questions   0 from 142

Reset



<?php // create new object $obj = (object) array(); // OR $obj = new stdClass(); $obj->key1 = "value1"; $obj->key2 = "value2"; var_dump($obj); /* object(stdClass)[1] public 'key1' => string 'value1' (length=6) public 'key2' => string 'value2' (length=6) */ stackoverflow.com

Related Pages

Definition
Variable
Check
Type casting
Array to object
New object


0% 100%
 
 
0 pages 91 pages
1) How to create new object?









<?php // create new object $obj = (object) array(); // OR $obj = new stdClass(); $obj->key1 = "value1"; $obj->key2 = "value2"; var_dump($obj); /* object(stdClass)[1] public 'key1' => string 'value1' (length=6) public 'key2' => string 'value2' (length=6) */ stackoverflow.com

References









Programming

Php
   
Regex
   
MySQL
   
Css
   
jQuery
   
Git
   


References