Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

I have no idea what I'm looking at. Can someone pop the hood on this for me and tell me what this is?

Take a look at the code below:

require '../common/common.php';
@$level = 'Region';
@$market = 'South Regions';
@$type = 'Stacked';

@$kpi1 = 'rrc_setup_failure_pcnt';
@$kpi2 = 'bearer_drop_pcnt';

@$mkt2 =  $_GET['mkt'];
@$mktid = substr($mkt,0,3);
@$kpi1c = $_GET['kpi1c'];
@$kpi2c = $_GET['kpi2c'];
@$profile = $_GET['profile'];
//echo 'Level: '.$level.' Market: ' . $market.' Type: '.$type.' KPI1: '.$kpi1.' KPI2: '.$kpi2;

if ($market == '' && $mkt2 <> ''){ $market = $mkt2;}



if ($kpi1c == '') {
$my_array = array('#0000ff','#0000ff','#006600','#0066cc','#9600ff','#0b6693','#f0145a','#1c5252','#ad3d3d','#2de50e');
shuffle($my_array);
$kpi1c = $my_array[3];
$c1= substr($kpi1c,1,6);
//echo ' kpi1c ' . $kpi1c . '<br>';
}
else {@$kpi1c = '#'. $_GET['kpi1c'];$c1= substr($kpi1c,1,6);}

if ($kpi2c == '') {
$my_array = array('#0000ff','#0000ff','#006600','#0066cc','#9600ff','#0b6693','#f0145a','#1c5252','#ad3d3d','#2de50e');
shuffle($my_array);
$kpi2c = $my_array[7];
$c2= substr($kpi2c,1,6);
//echo ' kpi2c ' . $kpi2c . '<br>';
}
else {$kpi2c = '#'. $_GET['kpi2c'];$c2= substr($kpi2c,1,6);}

Open in new window


First thing: what is "@$level='Region'"? Not to sound like one who is totally clueless, but what's the significance of the "@" sign?

The rest is, from what I can tell, some design data that's used with some Javascript charts later in the page. But I want to know what the "@" sign is. I've seen that with session variables, but I've never taken the time to pop the hood and understand what that is.

A little help...?
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bruce Gust

ASKER

That was it! And Dave, I found myself using the "@" sign in the very way you described as far as circumventing a potential disconnect because of the way the previous developer had structured things.

Thanks!