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: 
Regular expressions and `explode` are possible solutions, however, the fastest one is `substr` in my opinion:

```
$last = substr($words, strrpos($words, " ")+1);

```

`strrpos` returns the offset of last space. That's all you need.
you may try

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

```