<?php $pattern = "#([a-z]*)|(chol)#";preg_match($pattern, 'chol',$m); print_r($m);
Standard input is empty
Array ( [0] => chol [1] => chol )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!