Changeset 4423
- Timestamp:
- 10/25/06 21:39:32 (2 years ago)
- Files:
-
- trunk/wp-content/plugins/hello.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-content/plugins/hello.php
r2758 r4423 42 42 $lyrics = explode("\n", $lyrics); 43 43 // And then randomly choose a line 44 $chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) ) ] );44 $chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) - 1) ] ); 45 45 46 46 // This just echoes the chosen line, we'll position it later
