Convert UTF-8 string into an array of chars in PHP

WireframeWhen designing desktop apps, websites, and mobile applications, more than once I have tried using an application like mockingbird or Pencil Project. On one hand, mockingbird, is a web application that can be accessed from any browser and allows you to design multiple pages with different elements. On the other hand, Pencil Project, initially born as a Firefox extension, now has a multiplatform desktop application that allows you to mockup easily.

The drawback I see on these two applications is that for some reason, I always end up making simple mockups with a simple pen and paper. This way I can organize my ideas faster than using these applications. I guess the main reason for this is that I’m not a designer, so to me it is the same doing a shitty design in paper, than a shitty design with an application. Moreover, usually using a computer app for this task I end up spending more time to do the same…

Anyway, the other day I discovered Wireframe.cc, and the truth is that I was quite impressed by the UI. It is super-easy and fast to use. You just drag the mouse while clicking and voila, you have an item of the size of your selection. You click on the type of item you want and you are done with the item. Even if you want to change attributes, you just have to double click on it, and select the attributes you want to change.

Actually, it is the first time I feel that I do not waste my time doing mockups with an application of this kind. From what I’ve seen, this application is starting, and it still lacks of some functionalities and needs some polishment, but I suppose that those will be added in the future. Even I think this lack of complexity and lack of tons of box types is what makes you go faster.

I think choosing the right tool for a job is a matter of personal preferences and personal needs, but I would recommend trying wireframe.cc and taking a look at the other apps I pointed out at the beginning of the post.

Feel free to share any other tool you find useful in the comments 😉

Trackback URL

, , ,

  1. Jose Luis Anaya
    22/02/2009 at 5:42 pm Permalink

    La grafica esta hecha con Open Flash 2!!
    Excelentes graficas, yo las he empezado a utilizar hace menos de 3 meses con Jquery y he obtenido unas graficas muy dinamicas 🙂 !

  2. Pau Sanchez
    23/02/2009 at 2:43 am Permalink

    Sabia yo que tenía que poner gráfica 🙂

    La verdad es que John Glazebrook se lo ha currado a base de bien.

  3. Steve
    25/03/2009 at 3:15 pm Permalink

    Thank you!! That was very, very helpful.

  4. Pau Sanchez
    26/03/2009 at 12:57 am Permalink

    You are welcome 😉

  5. Francesco
    23/04/2009 at 5:31 am Permalink

    This was very helpful Pau, thanks a lot.

    The last function is ingenious, really appreciated it. I will use it instead of the classic mb_substr.

  6. Pau Sanchez
    25/04/2009 at 11:25 am Permalink

    You are welcome Francesco.

    Although these functions are helpful one has to be aware they consume a huge amount of memory 😉

  7. Vlad
    06/12/2010 at 6:47 am Permalink

    Thanks, very very helpful 🙂

  8. lubosdz
    07/02/2011 at 4:11 pm Permalink

    Hi,
    your getCharArray3 is buggy – it returns array with empty values for supplied numbers. getCharArray1 + getCharArray2 are slower, but work correctly.
    cheers
    lubos

  9. Pau Sánchez
    21/02/2011 at 1:40 pm Permalink

    @lubosdz could you provide an example string that fails on getCharArray3?

  10. gilberto
    02/02/2012 at 7:44 pm Permalink

    Wow increible nota recomendare esta web a mis amigos

  11. gilberto
    02/02/2012 at 8:11 pm Permalink

    exelente me gusto mucho

  12. Huh?
    02/08/2012 at 11:38 pm Permalink

    What’s wrong with using //u in preg_split?

    $chars_array = preg_split(‘//u’, $utf8_string, -1, PREG_SPLIT_NO_EMPTY);