Jump to content

syntax error


manalnor

Recommended Posts

Hello friends,

 

i'd like to write the following code if it possible but it always gives error

 

<?PHP
echo "<img src=\""for($i=0;$i<count($spam_stop);$i++){echo $spam_stop[$i].'+';}"\">"; 
?>

 

it gives the following error

 

Parse error: syntax error, unexpected T_FOR, expecting ',' or ';'  :shrug:

 

~ thanks for help

 

Link to comment
https://forums.phpfreaks.com/topic/259299-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.