RE: [PHP] Get a specified amount of text?

2002-03-28 Thread Rick Emery
string substr (string string, int start [, int length]) -Original Message- From: Donald [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 23, 2002 5:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Get a specified amount of text? In Visual Basic there is a function called left. usage: left(str

Re: [PHP] Get a specified amount of text?

2002-03-27 Thread Miguel Cruz
On Sat, 23 Mar 2002, Donald wrote: > In Visual Basic there is a function called left. > usage: left(string, len) > It allows you to get the first 'len' characters of 'string'. > > Is there a similar function in PHP? > > I have a value: > "3.405" > That I just want to crop to "3.40" > If I pass "