I'd like to assist implementing a new PHP procedure called PHP Variable Hunter (in Sandbox). It specifically searches for array members containing ‘needle’, more precisely than dpm or krumo. It does the hunting for you.

Use it like this:

$results = pvh($arraytosearch, ‘needle’, TRUE); // last parm is optional; specifies exact match (default FALSE). $results is also optional.

It looks through the array tree structure for the needle and prints the results to the screen like this:

$ArraySearch[content][leader][leader_first]->block_7[#contextual_links][block][1]; == block

Results are in exact PHP format, with object references included.

For debug sessions the array $results contains the variables in the array, so developers can find and examine the array without leaving the debug session.

- I’m asking if you want this routine added to the debug module. It is not Drupal version specific.

Sandbox location: https://drupal.org/sandbox/jeoware/2023153

I'll assist implementation.

Comments

jeoware’s picture

Issue summary: View changes

Added hatsto request

jeoware’s picture

Status: Active » Closed (duplicate)
kscheirer’s picture

Title: Would you like to add a new PHP debug module? » Add phpvariable_hunter
Status: Closed (duplicate) » Active

Why is this duplicate?

I've reviewed your module, and I think it would be a good addition to the Devel project, especially if implemented as a Drush command. If the maintainers of Devel agree, could you provide a patch file here that implements this?

jeoware’s picture

I'd love to include this module in the Devel module and am waiting for feedback from devel module developers before progressing further.

salvis’s picture

Status: Active » Closed (duplicate)

I'm closing this one because the newer one has a screenshot: #2069003: Adding PHP Varible Hunter to Devel

salvis’s picture

Issue summary: View changes

New version in Sandbox.