Difference between revisions of "Template:Unique values"
From HodHood
P.Astakhov (talk | contribs) (Created page with "<phptag> global $count; var_dump( $argv[1] ); var_dump( $argv[2] ); </phptag>") |
P.Astakhov (talk | contribs) |
||
Line 1: | Line 1: | ||
<phptag> | <phptag> | ||
global $count; | global $count; | ||
− | + | $page = $argv[1]; | |
− | var_dump( $argv[ | + | $val = explode( ', ', $argv[2] ); |
+ | foreach ( $val as $v ) { | ||
+ | $count[$v][] = $page; | ||
+ | } | ||
+ | //var_dump( $argv[1] ); | ||
+ | //var_dump( $val ); | ||
</phptag> | </phptag> |
Revision as of 06:45, 23 February 2018
PhpTags Notice: Undefined index: 1 in Template:Unique values on line 3
PhpTags Notice: Undefined index: 2 in Template:Unique values on line 4
PhpTags Warning: explode() expects parameter 2 to be string, NULL given in Template:Unique values on line 4
PhpTags Warning: Invalid argument supplied for foreach() in Template:Unique values on line 5