Jump to content


Photo

Quick String Question


  • Please log in to reply
1 reply to this topic

#1 glenelkins

glenelkins
  • Members
  • PipPipPip
  • Advanced Member
  • 760 posts
  • LocationBridlington - East Riding of Yorkshire - United Kingdom

Posted 08 May 2006 - 10:33 AM

Hi

For some reason after writing so many php programs i cannot remember how to take off a number of characters from the front of a string (in this case the first 2). Trim() is useless in this circumstance. Any other options??

Cheers
http://thewebsolutionprovider.com - A Solution For Everything Web!

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 08 May 2006 - 11:09 AM

[a href=\"http://ca.php.net/manual/en/function.substr.php\" target=\"_blank\"]the substr() function[/a] with the [a href=\"http://ca.php.net/manual/en/function.strlen.php\" target=\"_blank\"]strlen() function[/a]
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users