|  | Posted by Rik on 07/04/97 11:52 
Jonathan N. Little wrote:> You sure that will not cause a second evaluation of htmlentities?
 
 Quite, not a 100%, but highly probable. A small test:
 
 <?php
 $i = 0;
 function check($string){
 global $i;
 $i++;
 return $string;
 }
 printf('%1$s %1$s %1$s',check('<br />We\'ll see'));
 echo $i;
 
 echo check('<br />and now:');
 echo $i;
 ?>
 
 Returns:
 We'll see
 We'll see
 We'll see1
 and now:2
 
 $i = 1, evaluated one time only.
 
 Grtz,
 --
 Rik Wasmus
  Navigation: [Reply to this message] |