Jump to content

PHP Notice: A non well formed numeric value encountered


svenn

Recommended Posts

Hi,

 

My errorlog keep spamming the following errormsg:

 

"PHP Notice:  A non well formed numeric value encountered on line 365".

 

This is the code it refers to:

for ($yr = $year, $age = -1; mktime(0, 0, 0, $month, $day, (int)$yr) < $today; $yr++, $age++);

 

It's supposed to calculate the owner of the page's age. The full code is:

list($year,$month,$day) = explode("-", $birthday);
			$tempVar=list($year,$month,$day) = explode("-", $birthday);
			$today = time();
			for ($yr = $year, $age = -1; mktime(0, 0, 0, $month, $day, (int)$yr) < $today; $yr++

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.