Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function listDataByString($data, $deli)
- {
- $words = explode($deli, $data);
- $max = count($words);
- for($o=0;$o<$max;$o++)
- {
- for($i=0;$i<$max;$i++)
- {
- echo "$words[$i] ";
- }
- array_push($words, $words[0]);
- array_shift($words);
- echo "<br />";
- }
- }
- listDataByString('1 2 3 4 5 6 7 8 9', ' ');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement