FakeJR
Coffee?
- Joined
- Nov 25, 2014
- Messages
- 128
- Reaction score
- 38
This is my first attempt to create just something in PHP.
But I got this error: Notice: Use of undefined constant Tom - assumed 'Tom' in C:\xampp\htdocs\---\test.php on line 6
Note: I know this is really easy to make but i've never done it before.
Also: Could you link some good tutorials in the comments if you do comment would really appreciate that.
<?php
$names = array('Chris' , 'Tom' , 'Bob');
$yrs = array('Chris'=>18 , 'Tom'=>13 , 'Bob'=>15);
echo 'My name is ' . $names[1] . ' and im ' . $yrs[Tom] . ' yrs old.';
?>
$names = array('Chris' , 'Tom' , 'Bob');
$yrs = array('Chris'=>18 , 'Tom'=>13 , 'Bob'=>15);
echo 'My name is ' . $names[1] . ' and im ' . $yrs[Tom] . ' yrs old.';
?>
But I got this error: Notice: Use of undefined constant Tom - assumed 'Tom' in C:\xampp\htdocs\---\test.php on line 6
Note: I know this is really easy to make but i've never done it before.
Also: Could you link some good tutorials in the comments if you do comment would really appreciate that.