Question: Can somebody help me to getting the last word from a text which contains only letters.

I should use regex I think...

For example:

```
100 r St Lazare, 75009 PARIS

```

I need the word `PARIS`

Answer: 
You can try with:

```
$input = '100 r St Lazare, 75009 PARIS';
$words = explode(' ', $input);
$last  = array_pop($words);

```

or

```
$last  = $words[count($words) - 1];

```
you may try

```
$text = "100 r St Lazare, 75009 PARIS";
$exploded = explode(" ",$text);
echo $exploded[count($exploded)-1]

```