print_r noting happen with my class
i build new class to loop field html but when i print_r it nothing "FeildHTML Object ( )"
here my code
public function setFeildCheck ($field,$fieldval,$unsetbutton)
$field = array($field);
$fieldval = array($fieldval);
$label = array_combine($field,$fieldval);
foreach($_POST as $k=>$v)
$$key = $v;
echo $label[$k]."=$v<br />";
$a = new FeildHTML();
What were you expecting it would show? print_r would only show the properties in an object in this case. which the class doesn't, have a field. try adding a property and you would see the value print with print_r. like this:
|All times are GMT. The time now is 01:37 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0