我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

检查数组中的值是否包含字符[PHP]

Usually, this may seem pretty easy - I tied out some suggested solutions for this topic, but none of them seem to work - I seem to be missing something here...

I'm trying to look if $Address['Address'] contains in its value a character. Let's say 'x'

(preg_match('/'.implode('|',$Address['Address']).'/', 'x', $matches))

or

if (strpos($Address['Address'], 'x') !== FALSE)

Doesn't seem to work the way I called it.

近期文章

  • 如何在Yii中更改cactiveform,chtml和其他小部件/组件的默认设置
  • 页面在提交时保持清爽
  • 读取从Hostway发送的电子邮件的访问日志
  • 如何在修改.txt文件的内容时刷新我的.php站点
  • 提取标签以及文本PHP Simple HTML DOM Parser Manual
  • 如果选中按钮值,我需要js插入mysql
  • 图像旋转导致背景变化
  • 使用NYT API访问JSON
  • 当提交按钮和浏览按钮被单个按钮替换时,无法上传文件
  • 如果我有多个查询并想在表中显示结果,如何使用服务器端分页?
  • Joomla PHP文件位置
  • Symfony2 genj / faq-bundle
  • 解决Salesforce REST API错误
  • 通过html解析输入到php
  • 如何使用PHP和Mysql将新值与现有数据库值连接
  • 添加一个mysql子查询来从昨天选择数据[关闭]
  • curl_setopt():设置open_basedir时无法激活CURLOPT_FOLLOWLOCATION
  • 更改wordpress查询以显示3列而不是2列的帖子?
  • 用空白变量重写URL
  • VoiceXML <submit>标记在php上抛出编译错误

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华