explode

    2热度

    2回答

    我想用PHP检索表格单元格的内容到另一个文件。使用此代码,我检索行的全部单元的内容。 $url = 'folder/myPage.php'; $content = file_get_contents($url); $first_step = explode('<tr id="foo">' , $content); $second_step = explode('</tr>' , $first

    -1热度

    1回答

    我有两种PHP格式的输入字段。这些字段需要保存到数组中,并且输出应该在括号中包含它旁边每个单词的单词长度。还需要评估哪个输入字段1或2具有最长的单词以及每个字段中有多少单词。它在执行过程中显示错误。语法错误,文件 Screenshot 1Screenshot 2 <!DOCTYPE html "> <html> <head> <meta charset="UTF-8">

    0热度

    1回答

    我想在提交/刷新页面后选择下拉选定选项。我寻找其他的例子,但没有人在我的代码上工作。 如何在使用此代码提交/刷新后保留选定的值? <form name="test" action="test.php?id=<?php echo $row["id"]; ?>" method="post"> <select id="test_email" name="test_email">

    0热度

    3回答

    我的时髦代码有什么问题? 我张贴用ajax字符串 脱颖而出例如:309534368.gif,400559388.jpg,859954067.jpg,821646469.jpg 在我的PHP纸条我写这篇文章 $gr = preg_replace('#[^a-z0-9-,.]#i', '', $_POST['gr']); $array_gr = explode(',',$gr);

    -4热度

    1回答

    我在用户配置文件&用户图库,我想显示用户上传图像,我有问题。 我有下面的代码 if($uploads) { $s = explode(",", $uploads); // Explode the images string value $r=1; $f=count($s); foreach($s as $a) { $newdata=$Mat>Get_Upload_Image_Id($a); i

    0热度

    1回答

    我的google-fu今天失败了。我期待解析查询刺痛,如: https://example.com/some/path/here?title=my_title&size>2&author!=smith 我期待的解析查询字符串到: array(3) { ["title"]=> array(2) { ["operator"]=> string(1) "="

    1热度

    3回答

    我有一个字符串组成是这样的: 87||1|nuovo#88||4|#209|||#89|||#41||1|#5|||#3||1|116#20|||#13||3|#148||| 的模式是: Id1|Mq1|Q.ta1|Tipo1#Id2|Mq2|Q.ta2|Tipo2#Id3|Mq3|Q.ta3|Tipo3等等... 基本上每个项目4点的属性由分离“ |”并且每个项目用“#”分开 我需要将字符串

    2热度

    2回答

    我希望有人能帮助我。 我有这样的字符串,例如: But the LORD is in His holy temple. Let all the earth be silent before Him. Habakkuk 2:20 我想使用爆炸函数来获得最后一部分字符串“哈巴谷书2:20”,我的问题是如何告诉爆炸功能选择最后字符串的句点(。)?

    -1热度

    1回答

    我需要与爆炸很多线路.txt文件,这些线被描述如下: achievements.levelup.desc=You unlocked the Achievement achievements.levelup.ok=OK achievements.levelup.reward=Reward: <b><font size="30" color="#7adde9">%amount%</font></b

    0热度

    3回答

    我有在列大小对于每个查询值,例如38 40 42 44,然后我想要选择大小的字段字段并将其分开(使用explode())以提供选择标记html后的选项。 我以前explode()拆分后的黑色空间的数量,但代码不给我所有的结果在多行 $sql = mysql_query("SELECT * FROM products WHERE id='$item_id' LIMIT 1"); whil