Well, obviously cb_ticker is not what it's supposed to be. Why do you suppose you got that result? Maybe get() did not return anything? Maybe you did not supply a valid URL to get()? (Hint: check the value of $string1, the input to the get function. It is not a URL). You seem to be in way over your head if you can not check the input and output to your functions. You need to do much less and make sure that step is correct before proceeding to the next step.