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