PHPMine
<? if(PHP > $Expectations) echo $Results ?>
by Angel S. Moreno
UNDER SOME SERIOUS CONSTRUCTION LINKS MAY NOT WORK
Asked 2010-03-14 06:01:16 by Ilyakar
how can i add the php function that says if the 50th charcter is a space: " " then print "abc";
Anwered 2010-03-14 07:16:41 by Web Programmer
// string to test ( ' ' in 50 spot)
$string = '1111111111111111111111111111111111111111111111111 1111111111';
// first position starts at 0 , so spot 49 is really the 50th character
$testChar = $string[49];
// spot 50 is a space, so output your string
if ($testChar == ' ') echo 'abc';
Questions and answers provided by the Yahoo Answers Community.