void cycle(
mixed
$array)
|
|
Will cycle thorough given array of values.
Will cycle thorough given array of values. Useful for nice table design.
The following example will cycle the table row background making bluesh(#CCF) stripes
- <?php foreach($i as $j) { ?>
- <tr style="background-color: <?php echo HTML::cycle(array('#FFF', '#CCF'));?>">
- <td><!-- show data --></td>
- </tr>
- <?php } ?>
Tags:
void humanize(
string
$word)
|
|
Will make a string more human-readable by replacing "_" with " ", and making words uppercase
Will make a string more human-readable by replacing "_" with " ", and making words uppercase
Tags:
Parameters: