smQQkin Posted July 29, 2009 Share Posted July 29, 2009 I can't figure out why I am getting the following error : Parse error: parse error in C:\wamp\www\Sams\numberdheading1.php on line 5 <?php function numberedHeading ($txt) { static $num_of_calls = 0; $num_of_calls++; echo "<h1>".$num_of_calls." ". $txt."</h1>";6:} numberedHeading ("Widgets"); echo "<p>We build a fine range of widgets.</p>"; numberedHeading ("Doodads"); echo "<p>Finest in the world.</p>"; ?> Any ideas? Link to comment https://forums.phpfreaks.com/topic/168050-solved-parse-error-parse-error-in/ Share on other sites More sharing options...
Mark Baker Posted July 29, 2009 Share Posted July 29, 2009 What's this? 6:} Link to comment https://forums.phpfreaks.com/topic/168050-solved-parse-error-parse-error-in/#findComment-886371 Share on other sites More sharing options...
smQQkin Posted July 29, 2009 Author Share Posted July 29, 2009 Good question Mark... I am doing some examples out of "Sams Teach Yourself PHP" and that is the code it gave me. I did remove that chunk of code and it works... Possibly, they made a mistake. Thanks for the help. Link to comment https://forums.phpfreaks.com/topic/168050-solved-parse-error-parse-error-in/#findComment-886373 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.