Drupal coder

Update : Panic Coda Drupal plugin - version 3

I've just created a (very) small update for the Drupal Coda Plugin. Coda is my favourite editor/IDE for Mac.

What's new?

  • PHP Unserialize
  • JSON Decode

PHP Unserialize

Turns a string like

a:16:{i:0;i:61;i:1;i:58;i:2;i:56;i:3;i:31;i:4;i:30;i:5;i:29;i:6;i:24;i:7;i:21;i:8;i:15;i:9;i:14;i:10;i:11;i:11;i:7;i:12;i:5;i:13;i:3;i:14;i:2;i:15;i:1;}

into

Array
(
    [0] => 61
    [1] => 58
    [2] => 56
    [3] => 31
    [4] => 30
    [5] => 29
    [6] => 24
    [7] => 21
    [8] => 15
    [9] => 14
    [10] => 11
    [11] => 7
    [12] => 5
    [13] => 3
    [14] => 2
    [15] => 1
)

JSON Decode

Turns a string like

{"wine":3,"sugar":4,"lemon":22}

into

Array
(
    [wine] => 3
    [sugar] => 4
    [lemon] => 22
)
AttachmentSize
Drupal.codaplugin.zip63.34 KB
September 15, 2009Coda, Coda Drupal plugin, Drupal

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options