<?php $string1 = '123456789'; $string2 = '135792468'; $stringParts1 = str_split($string1); sort($stringParts1); $stringParts2 = str_split($string2); sort($stringParts2); if( $stringParts1 == $stringParts2){ echo 'strings are a reorder'; }else{ echo 'strings are not a reorder'; };
You have javascript disabled. You will not be able to edit any code.