Jump to content

Error


cm0226

Recommended Posts

Got this error

Parse error: parse error in C:\xampp\htdocs\page46.php on line 6

 

with this code

 

<?php

 

//define a function

function birthday(){

    // Set age to 1

    $age = 1:

}

 

// Set age to 30

$age + 30

 

//call the function

birthday();

 

//Display the age

echo $age;

 

?>

 

Sorry newbie issues. What's it mean?

Link to comment
https://forums.phpfreaks.com/topic/157311-error/
Share on other sites

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.