----- Original Message ----
From: alternate_dph <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, May 27, 2006 5:37:08 PM
Subject: [php-list] Problems with php functions
I am having trouble getting php functions to work:
When I load the following page, nothing shows up:
<html>
<body>
<?php
function do_squat() {
print "<P>got here!!</P>\ n\ n";
}
do_squat;
?>
</body>
</html>
Any ideas on what in heck I am doing wrong? All the rest of
php-related stuff that I've tried to do works fine, I'm trying to use
a function just to keep the code easier to read.
[reply]
Call it like this:
<?php...
do_squat();
?>
You need to have the paretheses or it won't call the function.
HTH,
-Nick
[Non-text portions of this message have been removed]
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
SPONSORED LINKS
| Php mysql | Job postings |
YAHOO! GROUPS LINKS
- Visit your group "php-list" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
