GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   easy and quick PHP question (https://gfy.com/showthread.php?t=537500)

alex79 11-07-2005 01:57 PM

easy and quick PHP question
 
i have 2 strings:
string 1: "aaabbbccc"
string 2: "bbb"

what is the function to substract string 2 from string 1 and obtain a new string 3: "aaaccc" ??

nofx 11-07-2005 01:57 PM

\nhttp://www.com

psili 11-07-2005 02:00 PM

$new_string = str_replace($string_to_remove,"",$original_string) ;

Nookster 11-07-2005 02:37 PM

Quote:

Originally Posted by psili
$new_string = str_replace($string_to_remove,"",$original_string) ;

what he said.


All times are GMT -7. The time now is 10:33 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123