Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

mythusmage on "Writing a Plugin"

$
0
0

Catacaustic,

The header and license stuff I get, but guidelines on how PHP is structured an what each part does is still obscure to me. Not everybody has the same background. What I need is a break down of each PHP function, and how it is implemented. For example, from the Hello Dolly plug in we find...

lines 46-51: // Here we split it into lines
$lyrics = explode( "\n", $lyrics );

// And then randomly choose a line
return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] );
}

Now, where does one find a good introduction to PHP? One that doesn't assume everybody knows what PHP experts do.


Viewing all articles
Browse latest Browse all 26892

Trending Articles