"but what if.." Function / String Problem

From: Date: Fri, 19 Jan 2001 17:36:34 +0000
Subject: "but what if.." Function / String Problem
Groups: php.general 
Request: Send a blank email to php-general+get-35650@lists.php.net to get a copy of this message
What if I want the function to be processed within the " " quotes? Same as a variable might be interopelated? IOW, can I call a function without concantenating the function together with the string? *being a little stubborn* ----- Original Message ----- From: "Karl J. Stubsjoen" <karlflips@kstub.com> To: "PHP Mailing List" <php-general@lists.php.net> Sent: Friday, January 19, 2001 10:17 AM Subject: [PHP] Function / String Problem > Okay, what is wrong with this: > > echo "<br><br>...are you logged in: > $LoggedIn()<br><br>"; > // outputs: ...are you logged in: () > > Function is: > function LoggedIn(){ > global $HTTP_POST_VARS > if ($HTTP_POST_VARS["Login"] == "PHPIsCool") > {return "YES";} > else > {return "NO";} > } > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#35650) next »