I have a simple input that gets a date, how do I validate that date if it's true?
For example:
31/02/2006 this does not exist
20/20/9999 this does not exist
<input name="data"
ui-mask="99/99/9999"
kendo-date-picker name="t"...
I'm having trouble understanding the following code that is presented as a book exercise.
$a = true;
$b = -2;
$c = 7;
for ( ; $b < $c || $a; $b++){
if ($c + $b * 2 > 20)
$a = false;
echo $b." ";
}
The result is: -...
In PHP, what's the fastest and easiest way to get the last position of an Array?
I got this doing $array[ count($array) - 1 ] , and it works, but is there any simpler and less ugly way?
Recently I ran a test and there was an issue that asked for a number like 123.456 to be displayed as 321.456 . I thought the best solution would be to convert this to an array of char and then create an algorithm to print pos...
I have a lot of experience with PHP, and as I'm starting with C # now, it's going to be common for me to want to compare one language with another to find out if I can do something similar.
In PHP, I can add a functionality to a class so that...
I'm in a project where the responsible designer gave me the following layout to go to HTML + CSS:
Can anyone tell me if I have a way to do this with CSS3? I initially thought of a box-shadow, but it has no way to implement the way it was...
I would like to ask for your help again in this exercise. This time using the abstract class.
Create an abstract class FuncionarioAbstract with the String name attribute and the abstract method: public double getSalario();...
I'm writing the date and time in the database with script :
$sql = "INSERT INTO admin_users (user_name, user_password_hash, user_email, user_data)
VALUES('" . $user_name . "', '" . $user_password_hash . "', '" . $user_...