Jump to content

splitting the string.


ok

Recommended Posts

str_replace, the first option is the string you are looking for the second is what you want to replace it with. In this case nothing and the last option is the string you want to search. hope this helps

 


<?php 

$string = "http://GreenCareers.com";

echo str_replace('http://', '', $string);


?>

Link to comment
https://forums.phpfreaks.com/topic/119945-splitting-the-string/#findComment-617906
Share on other sites

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.