Substring
Posted: Sun Jul 04, 2004 12:09 pm
Hi,
What is the php equivalent to Java's substring?
In Java:
String str = "This is a test";
String str1 = str.substring(5, 7); <- Puts "is" into str1
How do I do this in PHP?
Cheers,
Mounir
What is the php equivalent to Java's substring?
In Java:
String str = "This is a test";
String str1 = str.substring(5, 7); <- Puts "is" into str1
How do I do this in PHP?
Cheers,
Mounir