I want to replace the result of several variables by PHP, each variable has a different value, I would like it if one value gives me a result that is changed by another.
$descarga1 > Esto me devuelve el valor > Mega.co.nz ó Dropbox.com
$descarga2 > Esto me devuelve el valor > Mediafire.com ó libros.relaxmind.info
$descarga3 > Esto me devuelve el valor > Googledrive.com o Box.net
To replace, I'm trying to do it this way:
function str_replace($descarga1,$descarga2,$descarga3){
str_replace(
array("Mega.co.nz","Obtén el libro desde Mega.nz"),
array("Dropbox.com", "Obtén el libro desde Dropbox.com"),
array("Mediafire.com","Obtén el libro desde Mediafire.com"),
array("libros.relaxmind.info", "Obtén el libro desde nuestra web"),
array("Googledrive.com","Obtén el libro desde Google Drive"),
array("Box.net", "Obtén el libro desde Box.net"),
);
return $
So far I have stuck, I hope you have given me to understand in the correct way, In summary I would like that if $descarga1, $descarga2 o $descarga3
host a result, this is changed by Get the book desde nombre del servidor
.
I hope you can help me, Thanks!.