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

grep for PHP函数,同时排除类方法和粘贴的javascript

I'm grep'ping through WP core, attempting to write a grep statement that will find all PHP functions, while excluding any class methods or Javascript functions.

This is what I have now:

grep -r --include=*.php 'function [A-Za-z_]\+(.\+)' .

This is returning both polluted functions from class methods and JS functions.

You might probably want to try http://phpxref.sourceforge.net/ I passed the entire WordPress code into PHPXref a couple of years back and was able to get the complete list of functions, classes etc.

近期文章

  • Mac认证PHP?
  • 邮件不通过表单发送
  • 抓住ajax网页的来源
  • PHP ffmpeg获取缺少标题,作者,评论,艺术家的元数据
  • in_array多维数组搜索
  • jquery和ajax页面刷新问题
  • 使用PHP或XML将MySQL数据导出为PDF表单
  • 使用DomXML从XML访问元素/属性
  • 多个下拉查询过滤器
  • PHP的MySQL MySQL编码问题
  • DST导致GCal事件的+1小时时差
  • 无法从PHP连接到MySQL,但可以从CLI连接
  • 尝试在域和子域cakephp之间共享会话(会话不断重置)
  • MYSQL选择每个“页面ID”的3个结果
  • 根据用户选择在页面上包含不同的mysql数据
  • php - 比较时间戳日期以确保用户的年龄最小[重复]
  • 自动生成Doctrine实体; 自定义解析
  • “PHP致命错误:未找到类'AppController'在Windows IIS7上运行CakePHP 2.0.5
  • 使用PHP执行关键字搜索
  • ajax-php请求在同一页面中

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华