<?php
$meta_keys = explode(',' stripslashes($row['meta_keys'])); // split into individual keys at commas
foreach ($meta_keys as $key) // loop through all keys
{
echo '<a href="#">' . trim($key) . '</a> '; // output each key link remove any leading/trailing spaces as well
}
?>
我认为这与我如何使用括号有关,但它给我的错误是:
解析错误:语法错误,第 91 行 /post.php 中的意外“stripslashes”(T_STRING)
91 是: $meta_keys = explode(',' stripslashes($row['meta_keys']));
你们知道它是什么吗?谢谢!