I found this ISSET "trick" around www, I donβt remember where. try running the script first as follows, then uncomment the second line of $ message = .. to write a line of a different length.
<?php $actiona="ACTIONA"; $actionb="ACTIONB"; $message="1234567"; //$message="12345678";//try to comment /uncomment these if (!isset($message{7})) { echo $actiona; } else { echo $actionb; } ?>
And of course
<?php $actiona="ACTIONA"; $actionb="ACTIONB"; $message="1234567";//try to comment /uncomment these //$message="12345678"; echo !isset($message{7}) ? $actiona : $actionb; ?>
Good luck We all love Php !!!!
source share