• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Get integer ID from redirectTarget string

Marcus

Well-known member
#1
I want to hook in after a redirect and want to fetch the ID used in responseRedirect->redirectTarget. How can I fetch this ID? Intval is not working as it is a string with just an integer value at the end. Thanks !
 

Marcus

Well-known member
#2
An integer valued trimmed explode got that working, although it's not pretty. Maybe there is a xenforo function for that?