<?php $tekst = "looooool";if (preg_match("/(.)\1/i", $tekst)) echo "dziala";else echo "nie dziala"; ?>
Standard input is empty
nie dziala
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!