I want to echo a string but I want to clean it up a little before echoing it from a database as it contains too much information.
I think that I need to use substring and possibly strpos for it.
This is what I have at the moment but I cant seem to figure it out:
implode(
';<br>',
unserialize($row['postvars'])[substr('stuff', 0, strpos('stuff', '('))]
)
So "stuff" is the string I want to echo and it looks something like this:
I want to remove evreything after the first bracket.