Reply to Re: function within echo"";

Your name:

Reply:


Posted by J.O. Aho on 12/22/06 07:17

Dave Nash wrote:
> Hi everyone.
>
> I am using the following code to call a function within a standard
> html form.
>
> <?php echo fileselect(); ?>
>
> This works great, but How do I call the same function with a php coded
> page
>
>
> example
>
> echo" insert function here ";
>
> Ive tried many variations but none seem to work
>
> thanks guys.

<?PHP

/* Simple method with direct output */
echo fileselect();


/* Slightly more advanced with a "delayed" output */
$string .= fileselect();
$string .= "\n";
$string .= fileselect();

echo $string;

/* Use function "inside" a string, direct output */
echo "someting ". fileselect() ." and something else";


?>

--

//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация