Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

replace in php

# for replace someting in string use this function
# str_replace("1st param for select","2nd param for replace with","3rd your string")
<?php
$string = str_replace(" ", "_", "Hello World");
// Output will be : Hello_world
?>
 
PREVIOUS NEXT
Tagged: #replace #php
ADD COMMENT
Topic
Name
3+8 =