i dont need the value of the lengh
just need the mcdonald part
Looks like you need to read the PHP Manual on [man]substr/man, [man]strpos/man, [man]strrpos/man, [man]strstr/man, and [man]strrchr/man.
These two code examples show precisely how to do what you are trying to do:
First, with strpos(),
<?php
$string = 'ronald.mcdonald';
$text = substr($string, strpos($string, '.') + 1);
echo $text;
?>
Then, with strstr(),
<?php
$string = 'ronald.mcdonald';
$text = substr(strstr($string, '.'), 1);
echo $text;
?>
The basic idea with strpos() is to find the location of the character. Once you know that location, you can take the substring from one past that location to the end. With strstr(), you just get the substring including the character, then use substr() to chop off the character from the start.