Suppose there is a line 12345:45 . I wrote a piece of code that leaves only what comes after the colon. And now how to do everything so that everything goes up to the colon?
$lat = explode(':', $coordinates); $lat = end($lat); Suppose there is a line 12345:45 . I wrote a piece of code that leaves only what comes after the colon. And now how to do everything so that everything goes up to the colon?
$lat = explode(':', $coordinates); $lat = end($lat); Source: https://ru.stackoverflow.com/questions/576221/
All Articles
end- pointer to the last element,reset- to the first. Not too harmonious, but it's PeHaPe ... - user207618$lat[0]... - PinkTux