Computer Science, asked by kkn2, 1 year ago

<?php $name='Michael';
print $ name*10;
?>
what is output of above php code?


kkn2: ok
kkn2: msg me
kkn2: message

Answers

Answered by Anonymous
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