>DansTonCode();

Tous les codes sources "Mais pourquoi ?"page 45

PHP
 10 September, 2013 à 14:32
#28
function truefalse($var, &$res){
   if($var == true)
   { 
      $res =true;
   }
   if($var == false)
   {
      $res=false;
   }
}
PHP
  4 September, 2013 à 10:45
#27
$retour=false;

    $retour=$result->fetch_assoc();
    if(is_null($retour))
    {
        $result->close();
        $retour=false;
    }

    return($retour);
PHP
 24 June, 2013 à 14:35
#22
function menu($lien,$texte)
{
    return '<table cellpadding="0" cellspacing="0" class="menu">
             <tr>
               <td colspan="3" width="200" height="11" background="'.'/img/mh.gif"></td>
             </tr>
             <tr>
               <td align="left" width="10" height="25" background="'.'/img/mg.gif"></td>
               <td><a href="'.$lien.'">'.$texte.'</a></td>
               <td align="right" width="14" height="25" background="'.'/img/md.gif"></td>
             </tr>
             <tr>
               <td colspan="3" width="200" height="14" background="'.'/img/mb.gif"></td>
             </tr>
             </table>';
}