to get the file
to get the file
to get the file
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
String Operations and Functions<br />
• The only opera<strong>to</strong>r is period(.) for catenation<br />
• String variables can be treated like arrays for access <strong>to</strong><br />
individual characters<br />
• The position can be specified in braces<br />
(Ex) If $str has “apples”, $str{3} is <strong>the</strong> fourth (l)<br />
• Functions:<br />
• strlen, strcmp, strpos, substr, as in C<br />
• chop – remove whitespace from <strong>the</strong> right end<br />
• trim – remove whitespace from both ends<br />
• ltrim – remove whitespace from <strong>the</strong> left end<br />
• str<strong>to</strong>lower, str<strong>to</strong>upper<br />
21