I have this input form which goes like this:
<input type="checkbox" name="vehicle" value="Bike" />
I want to print it inside this variable:
$return .= '<div class="flink">'.$checkbox.'</div>';
or can i assign it to any other variable?
How can i do it? I tried putting :
$checkbox.= '<input type="checkbox" name="vehicle" value="Bike" />';
If you’re looking to print a variable to the webpage, you can use several different commands.
echocommand is useful when the variable is HTML.var_dumpcommand is useful for debugging purposes, as it works on all kinds of variables.print_ris also nice, because it formats the output in a way that’s readable.