top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between strr_replace and strtr in php?

+1 vote
241 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

Your answer

Preview

Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
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 ); 
...