repl.it
@Piterden/

PHP SHIT

PHP (Legacy)

No description

fork
loading
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$array = [
    'title' => [
        'Iphone', 
        'Samsung',
        'Xiaomi',
        'Oppo',
        'Nokia',
    ],
    'path'  => [
        'root/iphone/index.php',
        'root/samsung/index.php',
        'root/xaomi/index.php',
        'root/oppo/index.php',
        'root/nokia/index.php',
    ],
];

foreach (array_combine($array['title'], $array['path']) as $title => $path) {
    echo "<a href=\"{$path}\">{$title}</a>\n";
}
PHP 7.0.8 (Legacy: use the following for new features: Command-line PHP: https://repl.it/languages/php_cli PHP Web Server: https://repl.it/languages/php7