I first referred to this this, but it did not solve my problem.
I am having something like:
$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)
....
I just want to print something as follows:
Whether /a is a directory: true
Whether /b is a directory: true
But it prints as follows:
Whether /a is a directory: 1
Whether /b is a directory: 1
Any suggestions to solve this?
EDIT:
I could check func == 1 ? TRUE : FALSE. But I am expecting a simple cast or similar.
echo true, it will still print1. so need abool2strfunction