Discussion: email issue
Afficher un message
Vieux 14/03/2008, 21h10   #10
Stut
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] PHP and #if

On 14 Mar 2008, at 19:03, Eric Gorr wrote:
> Unfortunately, such things cannot be used to wrap functions.


Erm, yes they can. Try it.

<?php
if (rand(0,1) == 0)
{
function arse()
{
echo "arse 1\n";
}
}
else
{
function arse()
{
echo "arse 2\n";
}
}

arse();
?>

Oh, and top-posting is evil, please don't do it.

-Stut

--
http://stut.net/
  Réponse avec citation
 
Page generated in 0,76755 seconds with 9 queries