top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What is the difference between strr_replace and strtr in php?

+1 vote
67 views
What is the difference between strr_replace and strtr in php?
posted Jul 20, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes
+1 vote

Let's say the string is "ram,shyam,seeta,geeta" (not an array just a text string)

I see that I can use these (strpos)

$findme = ',';
$pos = strpos($this1, $findme);
$pos2 = strripos($this1, $findme);

$showfirst = substr($this1, 0, $pos); 
$showlast = substr($this1, $pos2+1, 9999 ); 
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...