Exemplo n.º 1
0
 /**
  * Returns a <code>Boolean</code> with a value represented by the
  * specified string.  The <code>Boolean</code> returned represents a
  * true value if the string argument is not <code>null</code>
  * and is equal, ignoring case, to the string {@code "true"}.
  *
  * @param   s   a string.
  * @return  the <code>Boolean</code> value represented by the string.
  */
 public static function valueOf($value)
 {
     $b = new Boolean($value);
     return $b->toNative();
 }