I was taking a look at the source code of a known php library, called Twig (it's a template engine, with its own syntax), and I came across classes, interfaces and methods like Lexical , Lex and LexInterface .
I gave...
I'm developing this program that should receive an expression from the user and do the calculation. Ex:
Enter an expression
3 * 5-1
14
My problem is how to handle the expression sent by the user. It was recommended to...
As part of a procedure, I need to extract the contents of a table present on a page. I'm using cURL to get the raw HTML data and the Simple HTML DOM Parser to parse and render HTML.
<?php
// (...)
require_once('simple_html_dom.php');
//...
I have a job to build an algorithm that calculates expressions coming from a TXT file in this format.
10 + 20 * (30) / 25.
I know that this is a recursive descending parser, but I have no idea where to start studying and how to do the pr...
I need some help to convert and add fields formatted as currency coming in this format "1,568,78"
I have a code that sums an array of plots and checks if it is equal to the total phallus of the invoice I got here after several queries in user...
I am reading XML files of about 50M of information (about a hundred thousand records, may be more), and I have two classes read XML read from a DOM and another SAX.
I'm having a problem in terms of runtimes, take me longer than 10 minutes, ma...
I am trying to find a way to set up a table with the data of a txt, but I do not know how to separate the values in the array, since they are separated by several spaces, but are identified by fields (Name: : ...);
Example of a txt file:
C...
I have an XML with the following format:
<dados-cad>
<nome>Wender</nome>
<data>2805094</data>
<code>311</code>
</dados-cad>
How do I in PHP for me to just grab the content th...
I'm using the NLTK Forest library and I saw there some parse (parse tree) sentences already created. However, I would like a method that from a new sentence it creates the parse in Portuguese.
Examples:
I use it today
floresta.parsed_sents(...
I am making a parser with simple_html_dom.php where I pull all the links of a certain page. I can pull the links and assign to an array, then the problem comes up:
This page has a maximum display limit of 36 items per page.
items i...