Posts by Victor Marconi • 298 points
9 posts
-
1
votes1
answer278
viewsA: What is the addcslashes function for in php?
According to the manual: Returns a string with backslashes before the characters that are listed in the charlist parameter. Example: php > echo addcslashes("Ola! Meu nome é Homer. Tudo bem?",…
phpanswered Victor Marconi 298 -
1
votes1
answer245
viewsA: Change user agent
The user-agent is what the client informs. If the client informs a different user-agent than it actually is, the server has no way of knowing. That being said, the $_SERVER['HTTP_USER_AGENT'] is set…
-
0
votes5
answers993
viewsA: What is the difference between referencing an attribute directly or by get/set
With setters, you can check for conditions before effectively changing the variable. public setIdade(int anos) { if (anos > 0) { idade = anos; } } After all, an age should not be negative,…
-
-1
votes3
answers379
viewsA: How to insert a ";" at the end of the string, program in c
The code entered in the question is not in C style++. I rewrote using C++ libraries. Compiled with: g++ -Std=c++11 stackoverflow.cpp -o stackoverflow #include <iostream> #include…
-
1
votes1
answer691
viewsA: Meaning of %in strings!
As stated, the % is for formatting. >>> "Uso do percent %d" % 30 The first %d mark that at this point there is a place (placeholder) to replace by a decimal (to be informed in the future).…
-
3
votes6
answers4346
viewsA: What is the difference between attribute and field in the classes?
Depending on the programming language, there is no distinction between attributes, properties and fields. Usually always called as fields or attributes. It’s usually called estates fields that are…
-
0
votes4
answers152
viewsA: Using Mysql how to create a Select that searches "together" words
How to differentiate "Alex Andre" from "Alexandre"? The closest I could get to finding people without the space curl. But that can mean people who are only with their first name saved. select pessoa…
-
-1
votes2
answers406
viewsA: Do not send email with PHP Mailer
Because the door is 587, I think you should put $mail->Smtpsecure = 'tls';
-
8
votes2
answers2898
viewsA: Convert minutes to hours
$minutos_totais = 278; $horas = floor($minutos_totais / 60); $minutos = $minutos_totais % 60; php > $minutos_totais = 1439; php > echo floor($minutos_totais / 60); 23 php > echo…
phpanswered Victor Marconi 298