This Fibonacci stuff is messing with my head, and I'm sure it is because I don't really understand this PHP stuff. Even after looking up other people's code examples, I am still at a loss (and it still isn't working!).
Can any kind-hearted person help me out? Or at least point me in the direction of some addition tutorials so that my head stops spinning?
What I was doing the whole time was correct EXCEPT I didn't have "echo" - I had return. Now it's working fine.
Oh, my!
At least I know I wasn't totally wrong, and I get this stuff more than I initially though I did. I just need to pay closer attention to what words I use! Hahaha.
I'll jazz it up before I send it out. Thank you so much, everyone!
I am starting the Fibonacci challenge soon, so I may very well reference this thread if I get lost. Hope everything went well for you in the end!
Best,
Monica
Nancy Hall wrote: > Oh, help! > > This Fibonacci stuff is messing with my head, and I'm sure it is because I don't really understand this PHP stuff. Even after looking up other people's code examples, I am still at a loss (and it still isn't working!). > > Can any kind-hearted person help me out? Or at least point me in the direction of some addition tutorials so that my head stops spinning? > > Anything would be appreciated!
This Fibonacci stuff is messing with my head, and I'm sure it is because I don't really understand this PHP stuff. Even after looking up other people's code examples, I am still at a loss (and it still isn't working!).
Can any kind-hearted person help me out? Or at least point me in the direction of some addition tutorials so that my head stops spinning?
Anything would be appreciated!
echo 0;
echo "
";
echo 1;
echo "
";
$x = 0;
$y = 1;
newnumber = $x + $y;
echo $newnumber;
echo "
";
Now... what comes next? What needs to happen?
echo 0;
echo "
";
echo 1;
echo ", ";
$x = 0;
$y = 1;
newnumber = $x + $y;
echo $newnumber;
echo ", ";
Now... what comes next? What needs to happen?
What I was doing the whole time was correct EXCEPT I didn't have "echo" - I had return. Now it's working fine.
Oh, my!
At least I know I wasn't totally wrong, and I get this stuff more than I initially though I did. I just need to pay closer attention to what words I use! Hahaha.
I'll jazz it up before I send it out. Thank you so much, everyone!
~N~
I am starting the Fibonacci challenge soon, so I may very well reference this thread if I get lost. Hope everything went well for you in the end!
Best,
Monica
Nancy Hall wrote:
> Oh, help!
>
> This Fibonacci stuff is messing with my head, and I'm sure it is because I don't really understand this PHP stuff. Even after looking up other people's code examples, I am still at a loss (and it still isn't working!).
>
> Can any kind-hearted person help me out? Or at least point me in the direction of some addition tutorials so that my head stops spinning?
>
> Anything would be appreciated!