Hi all,
Can anyone lend some assistance in regards to the following preg_replace()?
If i pass the follwing string:
$knowledge_category_parent = "admin_knowledgebase.php?new_category=true&knowledge_category_id=5"
how do i get it to display everything after the "=", in this case 5 but it could be any value.
This is what i have so far but it stops after the "?".
$knowledge_category_parent = preg_replace('|admin_knowledgebase.php?new_category=true&knowledge_category_id=|i', '', $knowledge_category_parent);
Is there even a better way to do this?
Cheers,
micmac