Some php code problems occurred while debugging the personal blog website.
Reply to discussion (solution)
The first one is because the input is not a string, prompting you to pass in an array; the second and third indicate that the two indexes do not exist in your array.
Sorry, but can you help me debug it?
Paste the first 20 lines of code
There is also such a problem. although I know what it means, I don't know how to define it? The code is as follows:
$ Word = strlen ($ str );
Should be
$ Word = count ($ str );
Add
$ Img = $ pic = '';
$ Info [title]
Change
$ Info ['title']
14: $ word = count ($ str );
15: $ img = '';
16: $ pic = '';
17: for ($ I = 0; $ I <4; $ I ++ ){
There is also such a problem. although I know what it means, I don't know how to define it? The code is as follows:
Change $ info [title] to $ info ['title']
The property of the variable is undefined. If an error is ignored, you can modify the php error level.
Wow, thank you. I have fixed many issues, but what are the issues?
[1]
And... :
[2]
[3]
[4]