[ create a new paste ] login | about

MajidF

Name: Majid Fouladpour
Email:
Site/Blog:
Location: Karaj, Iran
Default language: PHP
Favorite languages:
About:

Saved pastes by MajidF:

PHP, pasted on Sep 13:
1
2
3
4
5
<?php

$chars = 'abcd';
$out = '';
for($j=0;$j<5;$j++) $out .= $chars{mt_rand(0, 3)};
...
view (8 lines, 1 line of output)
PHP, pasted on Sep 13:
1
2
3
4
5
<?php

$chars = 'abcd';
$out = array();
for($i=0;$i<100;$i++) for($j=0;$j<5;$j++) $out[$i] .= $chars{mt_rand(0, 3)};
...
view (7 lines, 103 lines of output)
PHP, pasted on May 17:
1
2
3
4
<?php

// in real code we'd read from a file
// $lines = file('./cookie.txt');
...
view (46 lines, 9 lines of output)
PHP, pasted on May 15:
1
2
3
4
5
<?php

echo "['Apple', 'Banana', 'Pomegranit']";

?>
view (5 lines, 1 line of output)