Can anyone give me example for structs data type in php ? How come there is something like structs in php all of a sudden ?
I recommend 2 things. First is associative array.
$person = Array(); $person['name'] = "Joe"; $person['age'] = 22;
Second is classes.
Detailed documentation here: http://php.net/manual/en/language.oop5.php