نقاط السمعة 1
تاريخ التسجيل 22/09/2014
آخر تواجد أكثر من 5 سنوات

<?php

echo "<pre>";       

echo $string = "We Are Future Programmers.";

$array = str_split($string); // spilting the string in array

// loop for the lines equal the length of my string         

for($i=strlen($string); $i >= 0; $i--){

//loop for check every character        







for ($x=0; $x <= strlen($string); $x++) {       







    // check if the character in reverse equal the line number        







    if($x >= $i && $x < strlen($string)){        





        echo $array[$x];          




    }    




    else{          





        echo " ";         



    }           




}          




    echo "<br>";       

}

?>

<?php

echo "<pre>";    

echo $string = "We Are Future Programmers.";
$array = str_split($string); // spilting the string in array
// loop for the lines equal the length of my string
for($i=strlen($string); $i >= 0; $i--){
//loop for check every character
for ($x=0; $x <= strlen($string); $x++) {
// check if the character in reverse equal the line number
if($x >= $i && $x < strlen($string)){
echo $array[$x];
}
else{
echo " ";
}
}
echo "";

}

?>

<?php

echo "<pre>";

echo $string = "We Are Future Programmers."; $array = str_split($string); // spilting the string in array // loop for the lines equal the length of my string for($i=strlen($string); $i >= 0; $i--){ //loop for check every character for ($x=0; $x <= strlen($string); $x++) { // check if the character in reverse equal the line number if($x >= $i && $x < strlen($string)){ echo $array[$x];

    }
    else{
        echo " ";
    }

}
    echo "<br>";

}

?>

<?php

echo "<pre>";

echo $string = "We Are Future Programmers."; $array = str_split($string); // spilting the string in array // loop for the lines equal the length of my string for($i=strlen($string); $i >= 0; $i--){ //loop for check every character for ($x=0; $x <= strlen($string); $x++) { // check if the character in reverse equal the line number if($x >= $i && $x < strlen($string)){ echo $array[$x]; } else{ echo " "; } } echo "";

}

?>

أجل يا سيدي :) !

شكرا لك ...