wordpress / php help
wordpress / php help
Out of context: Reply #5
- Started
- Last post
- 30 Responses
- mikotondria30
http://pastebin.com/n7UL1jsj
might help.
if it doesn't, just echo it at out at each line see what's happening.
Basically, we split the string up into an array where each element is what's between the "-"s. Then we array_pop the last element off the end of the array, this should be the "submission" part, then we implode (glue back together) the array elements into a string, and use "-" as the 'glue'. Hope that makes sense, even if the actual code (untested) doesn't.- obviously echo $mynewlink out at the end.mikotondria3
- ps: Go to bed !mikotondria3
- Ha Haa. It's only 11pm over here.dbloc
- Thanks for the help...testing it out now.dbloc