<?php $email = 'categoryparameterusedpricing_15'; $domain = strstr($email, '_', true); echo $domain.'<br>'; // выводит @example.com $user = strstr($email, '_'); // Начиная с PHP 5.3.0 echo $user; // выводит name
You have javascript disabled. You will not be able to edit any code.