<?php $v = 'gdfgdfg';preg_match_all('/[а-яё]/isu', $v, $res);//print_r($res); preg_match('/[a-z]$/ismu', $v, $u);print_r($u);
Standard input is empty
Array ( [0] => g )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!