November 29, 2015 Find the opposite in PHP Code Block <?php$origing_str = 1234;$origing_str.="";$opesite_str="";$leng = strlen($origing_str);$str_array=str_split($origing_str);for($i=$leng-1;$i>=0;$i--){ $opesite_str.= $str_array[$i];}echo "Opposite Number: ".(int)$opesite_str; ?> FacebookTwitterLinkedInPinterestWhatsAppPrintEmailMoreRedditTumblrPocketTelegramLike this:Like Loading... Related Tagged with: phpprogramming Posted in PHP, Programming by ahmadasjad Leave a comment