I would like to know how to compare the contents of a string in PHP.
I'm looking for a word on a line, but I do not know what position it is in.
$ch_atend
if($linha == "idle") { $ch_atend = $ch_atend++; };
This code is within a While and...
Given the hypothetical model below:
public abstract class Veiculo
{
public Motor Motor { get; set; }
}
public class Aviao : Veiculo { }
public abstract class Motor { }
public class MotorCarro : Motor { }
public class MotorAviao : Motor...
PHP 5.5 has implemented a new feature, which consists of getting the class name through the keyword class :
Example:
namespace testando;
class Teste{}
echo Teste::class; // testando\Teste;
This works correctly, as expected.
Now...
I have a parent element (div # workarea) that has four children: figure#start , p#first , figure#start2 and p#second :
<div id="workarea">
<h1 id="title">Área de Testes</h1>
<figure id="sta...
Is there any function to return the source file name itself?
The intent would be to create a log file, which one of the data would have the name of the source that is generating that log. If you have an error, it is easier to go directly to t...
I would like to know how the hierarchy works in css, I explain:
Let's say in my style.css I set to h1, h2, h3, h4, etc. by default font-size: 12px; , so far beauty ...
Now, if for example I insert inside a class...
Generally the first thing that came to my mind when I heard the term native language, was a program that ran independent of operating system, communicating directly with the hardware, I always developed in debug mode, when I released a releas...
I have questions regarding [i] + 1 and [i + 1] , one increa position and the other content, correct?
Regarding the (*i)++ notation, is it similar to the two above?
How do I insert the legend in this chart, what kind of bar would be the gross total and the line the total net?
lines = 'Mes Acid Obt
Jan 1450 102
Fev 1447 86
Mar 1461 87
Abr 1356 61
Mai 1398 80
Jun 1115 87
Jul 1211 82
A...
I'm doing a course project and I took the last step and would like a little help from you ..
The project is a leased SQL database (contract for "rental" of cars.)
The tables that import here and the values are: (there are more values, but...