Получить все символы до @

<?php $parts = explode("@", "admin@mail.ru"); $username = $parts[0]; echo $username; // Выведет admin $mail = 'root@kali.org'; $login = explode('@', $mail)[0]; echo $login; // Выведет root

1 Response

ГАВНО

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.