PHP: explode

Out of context: Reply #2

  • Started
  • Last post
  • 6 Responses
  • Nematoth0

    don't think so man.. the explode function normally requires a character to use as a separator.. there is a function that tests for uppercase but only returns true if ALL letters are uppercase..

    I guess what you could do is split the whole string into an array of single bytes and check each one for uppercase.. if it is uppercase then put all previous letters since last uppercase letter into one variable.. then continue.. and so on and so forth.. bit messy.. but seems like it might be the only way.. and don't ask me for code.. :)

    hope that helps your thought process...

View thread