![]() |
|
|
|
|
|
|
2
1st November 06:05
External User
Posts: 1
|
You can use try/catch, or since your current semantics are to return
boolean only, you could check do the following: <?php if( ($status = backup()) !== true ) { if( is_string( $status ) ) { echo 'Failure: '.$status."\n"; } } ?> Cheers, Rob. -- .................................................. .......... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! .................................................. .......... |
|