Author Topic: PHP function problem  (Read 501 times)

0 Members and 1 Guest are viewing this topic.

Offline DreX

  • Serf
  • *
  • Posts: 42
  • Cookies: -5
    • View Profile
PHP function problem
« on: April 17, 2015, 08:05:38 pm »
http://pastebin.com/FRHQSXq5
Can anyone tell me why this wont echo:
-the first three arrays are doing nothing since I wanted to test functions out on something simpler first.

add function: 8
sub function: 2

Instead I get:

add function: 
sub function:

Also, is there a way I can track my code line by line and check the values like I can in NetBeans with Java?

Offline DreX

  • Serf
  • *
  • Posts: 42
  • Cookies: -5
    • View Profile
Re: PHP function problem
« Reply #1 on: April 17, 2015, 08:09:49 pm »
NVM, no return command in the sub and add functions.