Jump to content

Delete everything after " "


Vivid Lust

Recommended Posts

substr('Hello World', start_position, length) will return the part of the string that starts at start_position and is length characters long.

strpos('Hello World', ' ') will return the position of the first occurrence of a space in the string, to be used as the length parameter in substr(), when start_position is 0.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.