<?php
$user = new \StdClass;
$user->name="Daria";
$user->date_birth="15/12/1993";
$user->city="Odessa";
$user->country="Ukraine";
$user->height="172";
$user->weight="52";
$user->body_type="Slim";
$user->education="College";
$user->occupation="student";
$user->drinking="Occasionally";
$user->smoking="Never";
$user->color_eye="Green";
$user->color_hair="Light-Brown";
$user->marital_status="Never married";
$user->count_children="0";
$user->eng_level="Intermediate";
$user->other_langs="";
$user->religion="Christianity";
$user->looking_for="I am looking for serious relationship here. I believe that friendship is a good base for relationship. I miss a positive, kind, romantic, faithful, honest and caring man next to me. It is very important for me to have similar outlook with my loving man and to share the same values.";
$user->description="I'm a sunshine girl. I have a very active lifestyle. I prefer healthy life. I'm a very unpredictable person in a good way course! I like to make presents and look to reaction. I like to try new things and travel a lot. I m sure that I will be a good and lovely mother as I love kids very much!";
foreach ($user as $key => $value) {
var_dump([$key => $value]);
}
array(1) {
["name"]=>
string(5) "Daria"
}
array(1) {
["date_birth"]=>
string(10) "15/12/1993"
}
array(1) {
["city"]=>
string(6) "Odessa"
}
array(1) {
["country"]=>
string(7) "Ukraine"
}
array(1) {
["height"]=>
string(3) "172"
}
array(1) {
["weight"]=>
string(2) "52"
}
array(1) {
["body_type"]=>
string(4) "Slim"
}
array(1) {
["education"]=>
string(7) "College"
}
array(1) {
["occupation"]=>
string(7) "student"
}
array(1) {
["drinking"]=>
string(12) "Occasionally"
}
array(1) {
["smoking"]=>
string(5) "Never"
}
array(1) {
["color_eye"]=>
string(5) "Green"
}
array(1) {
["color_hair"]=>
string(11) "Light-Brown"
}
array(1) {
["marital_status"]=>
string(13) "Never married"
}
array(1) {
["count_children"]=>
string(1) "0"
}
array(1) {
["eng_level"]=>
string(12) "Intermediate"
}
array(1) {
["other_langs"]=>
string(0) ""
}
array(1) {
["religion"]=>
string(12) "Christianity"
}
array(1) {
["looking_for"]=>
string(282) "I am looking for serious relationship here. I believe that friendship is a good base for relationship. I miss a positive, kind, romantic, faithful, honest and caring man next to me. It is very important for me to have similar outlook with my loving man and to share the same values."
}
array(1) {
["description"]=>
string(293) "I'm a sunshine girl. I have a very active lifestyle. I prefer healthy life. I'm a very unpredictable person in a good way course! I like to make presents and look to reaction. I like to try new things and travel a lot. I m sure that I will be a good and lovely mother as I love kids very much!"
}
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/CX7E3 on line 26
Process exited with code 255.
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CX7E3 on line 3
Parse error: syntax error, unexpected '[', expecting ')' in /in/CX7E3 on line 26
Process exited with code 255.
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CX7E3 on line 3
Parse error: parse error, unexpected '[', expecting ')' in /in/CX7E3 on line 26
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/CX7E3 on line 3
Parse error: parse error, expecting `')'' in /in/CX7E3 on line 26
Process exited with code 255.