Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I have to work with huge arrays sometimes. I mean really long nested arrays in PHP and when I print_r them you don't have a chance to understand anything it's so much, then I use print_r in between HTML <pre></pre> which makes it a bit better.
I'm searching for an online array helper where I copy the array, put it in and then can see how to access a certain value. It's just hard to try to figure out, hey I need to do: $array[0][test][4][value]
Is there a tool which helps to find what I'm looking for in an array and how to access it?
A way is to output your huge array as a JSON with echo json_encode($array);.
You can put the output then in some kind of JSON inspector tool. I use JsonFormatter by Curiousconcept, or just inspect the raw output from the URL it's outputted on with this JSONVue plugin for chrome
If you use any good IDE (like VSCode or PHPStorm) you can add the contents to a .json file and let your IDE format the file, after which you get folding icons in the gutter.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I work on one project, I used html2pdf by spipu but unfortunately I encountered problems at the end, such as problems with pictures and also rendering. My question is what would you recommend if I want to convert the automatically generated html into a php file to pdf on my own domain and site. My idea is something like this that my given html generated code, which already shows me a browser as it would convert to pdf (using html5 ...). Also, and this is probably the biggest problem I need to get rid of before and after element. I was looking at different kinds but some require api key and registering and then converting this html somewhere else, and I would like to avoid it.
I've used tcpdf in the past it works great and it's open source.
Take a look at their website they have plenty of examples that might get you going.
Wanted to mention this answer as a comment since the question is vague but my SO reputation prevents me from that still..
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there any ICCDATA Parser available in PHP ?
It should be ICCDATA data parser, I have ISO8583 parser, but that do NOT parses ICCDATA.
The root of your answer is to properly understand the element's format and then searching for the correct thing.
I am assuming you are referring to Data Element 55 Integrated Circuit Data (ICC) when you say the ISO-8583 ICCDATA field. The EMV (ISO 7814), VISA, MasterCard, and other specifications are pretty clear on its format.
What you require is an X.690 BER-TLV parser to break down this portion of the message, not just a generic TLV field parser.
There have been some other posts on Stack Exchange as well on this, this is a good one. This is a good on on the differences between simple and BER-TLV.
GitHub has BER-TLV parsers if you need a jump start and this one by NuclearDog was one that came up towards the top of the list when searched.
Once you have your code written EMVLabs has a tool for helping you check you encoding or to see if you get the same result with their BER-TLV decoder tool. (obviously don't put production data there).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have a website that's been set up rather poorly (2000+ page files that has code copy/pasted for header+footer sections instead of setting up includes() for external files.)
I was wondering if there was a way I could write some sort of script or macro or something that will go through each file, find a specific snippet that starts with (for example) and ends with , and just deletes that specific section of code.
I don't have any experience with writing macros or anything else like this so if there's a program that exists or an add-on in sublime or something like that, It would be amazing if someone could point me in that direction. Otherwise, how should I get started in creating something that can do this for me?
Thanks for your help! Please let me know if I can answer any questions to clarify this.
Sublime text 2 or Sublime text 3 supports regex.
They also have features where you can 'find & replace'
If the website is hosted on a linux server you can look into sed . It is extremely powerful and you can have it search recursively on a directory if you pair it with a find command.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to design a Forum using Php but the problem I am facing is that I dont know how can I put a Post creator in it. As far as I know something like wysiwyg editor is used for it but how can I get it.
By Post creator I mean some thing like here on stackoverflow we are given an editor by which we post our questions. That is the same thing I need.
Thanks
There are several great WYSIWYG editors ; to name only two of the most-used, you could think about :
TinyMCE
CKEditor
In each case, I suggest you read their documentation, to see how they can be integrated into your website ;-)
Generally speaking, getting the data entered by the user will not be harder than reading an element of the $_POST array.
What you're looking for is called an RTE or Rich Text Editor. There are many around.
See here
You can also view the answer from here for something similar to what stackoverflow uses.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I know (PHP's) var_dump is supposed to be "human readable" and all, but analyzing large objects is just a pain in the neck. I am struggling to make sense of a few of the large objects that are being passed around in a script that we are running. (I know that using xdebug with and IDE is a good idea, but I have not been able to get xdebug to run on this project for some reason - several days lost, ugh).
Any ideas on how I can easily digest the contents of a really big var_dump? Any ideas are welcome... Although I am hoping that there is something similar to Thomas Frank's JSON tool (where you just put some code in and it gives a nice graphical representation).
I'd just use dBug.
You could take a look at FirePHP. It enables you to write information to the firebug-console. If you write an array or object to the log and hover with your mouse over it, you get a nice presentation of the contents of that array. Here is a screenshot of a simple example.
I made a var_dump alternative you should like:
http://raveren.github.io/kint/
Screenshot demonstrating content-aware features:
(source: github.io)
Interesting question. I'd make my own var_dump() equivalent based on some recursive function. With some parameters (such as nesting level, certain element name, etc) to pass it could be quite useful I think.