hello everyone,
I am looking to remove some stuff from my string:
$list = "7:2,3:1,5:1,33:1,23:2";

$list = "7:2,3:1,33:1,23:2"; // REMOVE THE "5:1," OR ANY OTHER DINAMICALY AT ANY POSITION
$list = substr($list, 0, strpos($list, "3:")); // i was thinking about this, but i dont think it willwork.
thanks

Thanks, that worked out good :)

You're welcome =)
Just mark as solved if you don't have any other questions regarding this subject.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.