<?php
$acid=50;
$cocaine=0;
$hashish=0;
$heroin=0;
$ecstasy=0;
$smack=0;
$opium=0;
$crack=0;
$peyote=0;
$shrooms=0;
$speed=0;
$weed=0;
$drugs_current = array("acid" => $acid, "cocaine" => $cocaine, "hashish" => $hashish, "heroin" => $heroin, "ecstasy" => $ecstasy, "smack" => $smack, "opium" => $opium, "crack" => $crack, "peyote" => $peyote, "shrooms" => $shrooms, "speed" => $speed, "weed" => $weed);
$durgs_value_current = array("acid" => 1000, "cocaine" => 15000, "hashish" => 450, "heroin" => 5000, "ecstasy" => 10, "smack" => 1500, "opium" => 500, "crack" => 1000, "peyote" => 100, "shrooms" => 600, "speed" => 70, "weed" => 300);
var_dump($drugs_current);
vaR_dump($durgs_value_current);
var_dump($drugs_value_current); // I suspect a typo here.
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- array(12) {
["acid"]=>
int(50)
["cocaine"]=>
int(0)
["hashish"]=>
int(0)
["heroin"]=>
int(0)
["ecstasy"]=>
int(0)
["smack"]=>
int(0)
["opium"]=>
int(0)
["crack"]=>
int(0)
["peyote"]=>
int(0)
["shrooms"]=>
int(0)
["speed"]=>
int(0)
["weed"]=>
int(0)
}
array(12) {
["acid"]=>
int(1000)
["cocaine"]=>
int(15000)
["hashish"]=>
int(450)
["heroin"]=>
int(5000)
["ecstasy"]=>
int(10)
["smack"]=>
int(1500)
["opium"]=>
int(500)
["crack"]=>
int(1000)
["peyote"]=>
int(100)
["shrooms"]=>
int(600)
["speed"]=>
int(70)
["weed"]=>
int(300)
}
Warning: Undefined variable $drugs_value_current in /in/a5IRp on line 23
NULL
- Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
- array(12) {
["acid"]=>
int(50)
["cocaine"]=>
int(0)
["hashish"]=>
int(0)
["heroin"]=>
int(0)
["ecstasy"]=>
int(0)
["smack"]=>
int(0)
["opium"]=>
int(0)
["crack"]=>
int(0)
["peyote"]=>
int(0)
["shrooms"]=>
int(0)
["speed"]=>
int(0)
["weed"]=>
int(0)
}
array(12) {
["acid"]=>
int(1000)
["cocaine"]=>
int(15000)
["hashish"]=>
int(450)
["heroin"]=>
int(5000)
["ecstasy"]=>
int(10)
["smack"]=>
int(1500)
["opium"]=>
int(500)
["crack"]=>
int(1000)
["peyote"]=>
int(100)
["shrooms"]=>
int(600)
["speed"]=>
int(70)
["weed"]=>
int(300)
}
Notice: Undefined variable: drugs_value_current in /in/a5IRp on line 23
NULL
- Output for 7.3.32 - 7.3.33
- array(12) {
["acid"]=>
int(50)
["cocaine"]=>
int(0)
["hashish"]=>
int(0)
["heroin"]=>
int(0)
["ecstasy"]=>
int(0)
["smack"]=>
int(0)
["opium"]=>
int(0)
["crack"]=>
int(0)
["peyote"]=>
int(0)
["shrooms"]=>
int(0)
["speed"]=>
int(0)
["weed"]=>
int(0)
}
array(12) {
["acid"]=>
int(1000)
["cocaine"]=>
int(15000)
["hashish"]=>
int(450)
["heroin"]=>
int(5000)
["ecstasy"]=>
int(10)
["smack"]=>
int(1500)
["opium"]=>
int(500)
["crack"]=>
int(1000)
["peyote"]=>
int(100)
["shrooms"]=>
int(600)
["speed"]=>
int(70)
["weed"]=>
int(300)
}
NULL
preferences:
186.16 ms | 403 KiB | 227 Q