小编Jak*_*ins的帖子

echo <<<_END 不起作用

我将下面的代码嵌入到我的 php 标签中,但是它不读取 html,有人知道为什么吗?任何帮助,将不胜感激。

echo <<<_END
<pre>
<form action = "sqltest.php" method = "POST">
Author <input type = "text" name = "author" />
Title <input type = "text" name = "title" />
Category <input type = "text" name = "category" />
Year <input type = "text" name = "year" />
ISBN <input type = "text" name = "isbn" />
<input type = "submit" value = "Add Record" />
</form>
</pre>

_END;
Run Code Online (Sandbox Code Playgroud)

html php sql

3
推荐指数
1
解决办法
6259
查看次数

NSMutableArray无法删除重复项

我在我的数组中有重复,我想摆脱它们,所以我运行这个循环,但它不起作用.谁知道为什么?该阵列目前有3个项目,2个重复项和1个唯一项.

 for (int x = 0; x <= [array count]; x++) {
    if(x > 0){
        if([[array objectAtIndex:x - 1] isEqualToString:[array objectAtIndex:x]]){
            [array removeObjectAtIndex:x];
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

sorting xcode objective-c duplicates nsmutablearray

-1
推荐指数
1
解决办法
627
查看次数

标签 统计

duplicates ×1

html ×1

nsmutablearray ×1

objective-c ×1

php ×1

sorting ×1

sql ×1

xcode ×1