phpbar.de logo

Mailinglisten-Archive

[php] var_dump (string( $? ))

[php] var_dump (string( $? ))

Christoph Schönian php_(at)_phpcenter.de
Sat, 3 Nov 2001 12:44:02 +0100


Nachtrag:
Gibt es für die 'string' Abfrage dann Besseres?

 if(${"HTTP_".$REQUEST_METHOD."_VARS"}) {
   print "<pre style=background-color:#f0f0f0>";
   foreach(${"HTTP_".$REQUEST_METHOD."_VARS"} as $key => $val) {
      $key = ucfirst ($key);
      $val = trim(strip_tags($val));
      $type = gettype($val);
      if ($type == 'string') {
      	$n = strlen($val);
      	$cStr = "(".$n.")";
      }
      echo "$key <font color=red><b>=></b></font> $val $cStr\n";
   }
   print "</pre>";
 }

 Christoph



php::bar PHP Wiki   -   Listenarchive