<?php $s = "123";if (count( array_unique( str_split( $s))) == strlen($s)) { echo "Unique";} else {echo "Not unique";}
Standard input is empty
Unique
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!