Changeset 4423
- Timestamp:
- 10/25/2006 09:39:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.