php - Not able to pass concatenated value to an array
Get the solution ↓↓↓Solution:
Most likely answer is that$q_words
is not a scalar value (ie it's an array or object or undefined, rather than being a string or number). I suggest that you crank up your error reporting, then you'll probably get an error that will tell you why your array is not being created. See the man page for details.
Your could also runvar_dump
on$q_words
before you concatentate it to find out what it's current value is. And if you install the XDebug PHP extension both errors and var_dump output will be easier to read and more informative.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: using $this when not in object context laravel
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.