There is a line like

CN=Б*а О*а П*а,OU=Users,DC=ru 

You must leave only OU=Users,DC=ru . That is what is after the first comma.

    2 answers 2

     $start_str = "CN=Ба Оа П*а,OU=Users,DC=ru"; $arr = explode(',', $start_str); $end_str = join(',', array_slice($arr, 1)); 
       $retval = substr($str, strpos($str, ',')+1);