0
Reverse and concatenate
You have to design PHP function that take two strings ,first reverse both strings individually then concatenate them. For example - first string is – abcd second string is – efghi after reversing above both string followed by concatenating them the output will look like - dcbaihgfe
5 Respuestas
+ 5
Prahlad Gaur I understand but how you know she tried? I didn't see her attempts. I am not mind reader.
+ 4
shreya arora Did you try to do?
+ 2
<?php
function Reverse($str){
return strrev($str);
}
$str = "sololearn";
echo Reverse($str)
?>
output:
nraelolos
here's how you reverse string in php, now your job is to try to implement your problem using this.
// First String
$a = 'Hello';
// Second String
$b = 'World!';
// Concatenation Of String
$c = $a.$b;
echo $c
output:
Hello World!
here's how Concatenation is done in php
+ 2
Thank you sir... I would try again :)
+ 1
She tried ,but having some mistakes ,so she asked this question, understand aj anant