我首先提到这个
this,但它没有解决我的问题.
我有类似的东西:
$message .= "\n\tWhether $testOutputDir is a directory:" . (!!is_dir($testOutputDir))
. "\n\tWhether $outputDir is a directory:" . is_dir($outputDir)
. "\n\tWhether $outputDir is readabale:" . is_readable($outputDir)
....
我只想打印如下内容:
Whether /a is a directory: true
Whether /b is a directory: true
但它打印如下:
Whether /a is a directory: 1
Whether /b is a directory: 1
有什么建议可以解决吗?
编辑:
我可以检查func == 1吗?真假.但我期待一个简单的演员或类似的.