Esteemed PHP'ers:
My PHP parser was quite happy with this statement:
In an effort to make this statement more elegant, I attempted interpolation:PHP Code:echo "<br /><br />Your final quota of hands for this session was " . $numbers [$_SESSION["limit"]] . ". This would have been hand number " . $numbers [min (($_SESSION["bigCounter"] + 1), count ($numbers) - 1)] . ". BUT do not dispair: You can begin a <i>new</i> session when our webmistress returns from " . $excuses [(rand(0, count($excuses) - 1))] . ". She should be coming back in a while. When she does, it will make her so happy if you are here. We hope you will not disappoint her. She will cheerfully review your starting quota of poker hands and, if necessary, adjust it.<br /><br />So hang out or, if necessary, come back later. Or feel free to refresh your <i>quotation</i>, above. You can do that while waiting!";
My efforts resulted in this message:PHP Code:echo "<br /><br />Your final quota of hands for this session was $numbers [$_SESSION['limit']]. This would have been hand number $numbers [min (($_SESSION['bigCounter'] + 1), count ($numbers) - 1)]. For that reason, we must deny at the moment your efforts for a new hand. We deny this new hand with respect and with love. BUT do not dispair: You can begin a <i>new</i> session when our webmistress returns from $excuses [(rand(0, count($excuses) - 1))]. She should be coming back in a while. When she does, it will make her so happy if you are here. We hope you will not disappoint her. She will cheerfully review your starting quota of poker hands and, if necessary, adjust it.<br /><br />So hang out or, if necessary, come back later. Or feel free to refresh your <i>quotation</i>, above. You can do that while waiting!";
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/marainla/public_html/pageContent/q-genp.txt on line 438
On a hunch, I tried escaping some of the periods:
That change generated the same error message.PHP Code:echo "<br /><br />Your final quota of hands for this session was $numbers [$_SESSION['limit']]\. This would have been hand number $numbers [min (($_SESSION['bigCounter'] + 1), count ($numbers) - 1)]\. For that reason, we must deny at the moment your efforts for a new hand. We deny this new hand with respect and with love. BUT do not dispair: You can begin a <i>new</i> session when our webmistress returns from $excuses [(rand(0, count($excuses) - 1))]\. She should be coming back in a while. When she does, it will make her so happy if you are here. We hope you will not disappoint her. She will cheerfully review your starting quota of poker hands and, if necessary, adjust it.<br /><br />So hang out or, if necessary, come back later. Or feel free to refresh your <i>quotation</i>, above. You can do that while waiting!";
Next I tried eliminating some white space:
and got...PHP Code:echo "<br /><br />Your final quota of hands for this session was $numbers[$_SESSION['limit']]. This would have been hand number $numbers[min(($_SESSION['bigCounter']+1),count($numbers)-1)]. For that reason, we must deny at the moment your efforts for a new hand. We deny this new hand with respect and with love. BUT do not dispair: You can begin a <i>new</i> session when our webmistress returns from $excuses[(rand(0, count($excuses)-1))]. She should be coming back in a while. When she does, it will make her so happy if you are here. We hope you will not disappoint her. She will cheerfully review your starting quota of poker hands and, if necessary, adjust it.<br /><br />So hang out or, if necessary, come back later. Or feel free to refresh your <i>quotation</i>, above. You can do that while waiting!";
Parse error: syntax error, unexpected '[', expecting ']' in /home/marainla/public_html/pageContent/q-genp.txt on line 438
Might someone please assist me in my quest for elegance?
A.



Reply With Quote





Bookmarks