Can anyone give me example for structs data type in php ? How come there is something like structs in php all of a sudden ?
You can use an array
$something = array( 'key' => 'value', 'key2' => 'value2' );
or with standard object.
$something = new StdClass(); $something->key = 'value'; $something->key2 = 'value2';