<?php $name='Michael';
print $ name*10;
?>
what is output of above php code?
kkn2:
ok
Answers
Answered by
0
Hi,
Your code contains some syntax errors. However I have fixed them and tried to execute it.
Here is the fixed code
<?php
$name='Michael';
print_r( $name*10);
?>
and the output wolud be:-
0
_______________________________________________
and here is the ouput of your actual code without any modification it is giving me this error.
syntax error, unexpected 'name' (T_STRING), expecting variable (T_VARIABLE) or '{' or '$'
Similar questions