Tag Info

New answers tagged

1

Everyone has their own wishlist for routing. Which is why so many people have looked over the landscape, decided that everyone else's routing is bad, and written a new one. That said, the top of my wishlist includes hierarchical routing. That is, based on the start of the URL you should be able to route to a component that takes the next component and ...


3

Here are some points you should take in consideration: Readability: long regular expressions are difficult to understand. Use comments (and eventually break one long expression into several small ones, if possible) to make it easier to read. At the same time, the piece of PHP code in your question can (and should) be refactored to make it more readable. ...


0

I believe the answer to my question is actually quite simple.. take the string, divide it into 2 pieces and then compare the pieces.. if they match then it contains repeated content, if not then it doesn't. Eg: This is a repeating string. This is a repeating string. becomes: a = This is a repeating string. b = This is a repeating string. ...



Top 50 recent answers are included