S
S
Sergey Turik2017-10-21 13:52:10
laptops
Sergey Turik, 2017-10-21 13:52:10

How, when displaying information (previously unloaded from MySQL), to determine that the output value is a DATE?

So: there is a class that serves to display the organization's Debtor cards:
class Commun extends \vayEngine implements \grammar\Grammar_Module {
// There is a function that catches the data already loaded into arrays from the database for a specific Debtor
public static function simpleDraw ( $input, $ choose, $title = "Table" ) {
// this is how the output happens, where $choose specifies the list of rows to be output
for ( $m = 0; $m < count ($choose); $m++) {
echo " {$input->{$choose[$m]}}";
}
Here the problem appears, there are some dates: in the form of MYSQL 2017-10-16 for example.
How to identify and process them through the DateTime class?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2019-07-22
@feanor7

Of these two ASUS for a disk, hybrids are certainly good, but I would not count on it for a long time.
Operatives in both cases are not enough for you.
Why don't you want a PC? It would have been cheaper.

M
Maxim Timofeev, 2017-10-21
@ArchSTVile

use strtotime php.net/manual/en/function.strtotime.php
It returns a number or false

S
Sergey Turik, 2017-10-21
@ArchSTVile

Great, it helped!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question