Parse error with a simple function
Posted: Tue Sep 19, 2006 7:54 am
Hi, I'm very new to php programming and am having a few problems creating functions.
Example code:
PHP version 5.1.4 on custom Linux install (Fedora 5)
Example code:
results in:<?php
funtion doHello($Name = "Paul") {
return "Hello $Name\n";
}
?>
But I can't see anthing I've missed - any ideas?Parse error: syntax error, unexpected T_STRING in /home/oliver/public_html/thesubstitutes/diary/php.php on line 2
PHP version 5.1.4 on custom Linux install (Fedora 5)