Strange Array values: PHPcode, Array ([title] = & gt; Thunder TV series [encoding] = & gt; gbk [listlink] = & gt; & lt; divclass =\& quot; strange question about the op array value
PHP code
, Array ([title] => Thunder TV series [encoding] => gbk [listlink] => _ src = \ "([\ s \ S] *?) \ "[Listname] => _ src = \" ([\ s \ S] *?) \ "[Replace] => Array ([listname] => <\ [^> \] + >$ $ [vodname] => <\ [^> \] +> $ [actor] =>< \ [^ >\] + >$ $ [director] =>< \ [^ >\] + >$ $ [content] ==>< \ [^> \] + >$ $ [vodpic] =>< \ [^> \] + >$ $ [continu] =>< \ [^ >\] + >$ $ [area] =>< \ [^> \] + >$ $ [playtime] =>< \ [^> \] + >$ $ [grade] =>< \ [^ >\] + >$ $ [url] =>< \ [^ >\] + >$ $) [name] =>([\ S \ S] *?) <\/Strong> [actor] =>- ([\ S \ S] *?) <\/A> <\/li> [director] =>
Director: <\/strong> ([\ s \ S] *?) <\/P> [content] => ([\ s \ S] *?) [Continu] => [area] =>
- Tag: ([\ s \ S] *?) <\/Li> [playtime] =>
Title length: <\/strong> ([\ s \ S] *?) Minutes <\/span> <\/p> [grade] => [language] =>
In the above array, I want to get the value of [content], but only a part of it can be obtained.
([\ S \ S] *?)
The last part cannot be obtained.
What is the reason?
------ Solution --------------------
Add the array var_export.
------ Solution --------------------
How did you upload the file. Why?
------ Solution --------------------
Provide the value of [content] and describe what you want
------ Solution --------------------
Symbol problems are very likely.
We recommend that you add htmlspecialchars () before storing array elements ();
Htmlspecialchars_decode ();
------ Solution --------------------
How did you see that you only obtained some of them? Is it directly output? what is the page effect?
------ Solution --------------------
Can be called after adding:
PHP code
$ A = "[B] ([\ s \ S] *?) 123 [1] => [B] ([\ s \ S] *?) Array ([0] => [B] ([\ s \ S] *?) ------ Solution --------------------
PHP code
$ A = "[B] ([\ s \ S] *?)> ". $ D ."
";/* Output, the browser interface has resolved the tag */d --> [B] ([\ s \ S] *?) /* Source code */d --> [B] ([\ s \ S] *?)