string manupulation

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
us2rn4m2
New php-forum User
New php-forum User
Posts: 17
Joined: Thu Aug 09, 2012 1:28 pm

Re: string manupulation

Post by us2rn4m2 » Fri May 23, 2014 12:45 pm

Code: Select all

$string = 'bik_bij_12_something.jpg';
echo substr($string, 0, strrpos($string, '_', 3)); // bik_bij_12
http://www.php.net/manual/en/book.strings.php

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests