RE: [PHP] best way to delete char# 4-7 from a string?

2002-07-19 Thread joakim . andersson
From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 7:39 AM To: php Subject: [PHP] best way to delete char# 4-7 from a string? Hi, Let's say I have the following string: $str = 'abcdefghijklmnop'; ...and I want to strip out char #'s 4 through to 7

RE: [PHP] best way to delete char# 4-7 from a string?

2002-07-18 Thread Martin Towell
dunno how much slower it'd be, but it might look better. You could convert the strings to an array, use array_splice(), and then convert back to a string. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 3:39 PM To: php Subject: [PHP] best way