convert() public static method

Converts the type of values like "true", "false", "null" or "123".
public static convert ( string $value, integer $options = self::VAR_STRING ) : mixed
$value string
$options integer
return mixed
示例#1
0
文件: EnvTest.php 项目: jbzoo/utils
 /**
  * @dataProvider dataProvider
  * @param mixed $value
  * @param int   $options
  * @param mixed $expected
  */
 public function testConvertOptions($value, $options, $expected)
 {
     isSame($expected, Env::convert($value, $options));
 }