... You don't state whether you want the values into an array or whether you just want one long string of numbers. The code gives long number. If you're certain you don't have any values like /0/, you can use this to put them into an array: ... But just in case, you can do this: ...
Maybe cut on '/' and check the contents for integer type. ... or even: ... however, this won't be positive for start of string or end of string numbers unless there are / at start and end. EDIT: OK fixed ... THat will return integers at the start and end of your string.
Mmmm dunno if explode is the best option, the reason is that
I have this string: /blablabla/123123 thousands of times but the unique things that are always the same are the two "//", blablabla and 123123 are changing always in value and also length, I "simply" need to replace the content between the slashes with "" (I mean delete this content) and delete also both slashes
@cereal Is more than probable that was my fault and my english, I'm doing my best, but its hard when you talk about a thing that's not yours and do it in a language that also its not yours... I master of mess ;)
Thank you any way! I luv this site and its members!
Perfect Again!!! I've added this to store the result in a variable:
$t = "/blablabl342/11846290496/";
$r = str_replace("/","",$matches);
echo $result; (result as I needed to play with.... ;))