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.
OU=Users,DC=ru
$start_str = "CN=Ба Оа П*а,OU=Users,DC=ru"; $arr = explode(',', $start_str); $end_str = join(',', array_slice($arr, 1));
$retval = substr($str, strpos($str, ',')+1);
Source: https://ru.stackoverflow.com/questions/321181/More articles:How to use Ninject to bind Service ReferenceStatic array of ints with non-const sizeHow to fill in the form with initial data?Set up the back button in the Android webviewUINavigationBar is not programmatically displayed, what is missing?How to display the latest records by date?Drop-down list with related table itemsEntity Framework RuntimeJquery connectionAndroid sample summaryAll Articles