All Questions

3
answers

What is the reason for this IF / ELSE assignment?

Because in this code the 0 is assigned to IF and the 1 value is assigned to ELSE ? <?php $flipCount = 0; do { $flip = rand(0,1); $flipCount++; if ($flip){ echo "<div class=\"coin\">H</...
asked on 01.10.2014 / 18:48
3
answers

Change date="" value of tooltips if they are displayed at resolution lower than 767px?

I'm implementing some tooltips in a contact form I'm developing. It turns out that when loaded at a lower resolution (below 767px), the tooltips is cut off. This is because tooltips has had their direction set by data-mytooltip-direc...
asked on 24.10.2016 / 07:34
2
answers

What is the "o" element automatically created between my buttons in HTML?

I'm developing a layout and when I put two buttons side by side, an "o" element is created in my HTML, which makes the spacing between the two, I could solve by creating a margin negative on the left, however I would like to know if this "o" el...
asked on 12.06.2017 / 17:38
1
answer

Updates and changes to the App version

I have some questions about updates and changes to an application version. I published an app on the Play Store and did not change anything on my AndroidManifest. It was as follows: package="com.app" android:versionCode="1" android:versionN...
asked on 21.07.2017 / 07:31
3
answers

Separating text from a string into an array

I need a way to separate a string like the following:    "0.1253729 09863637 02937382 029828020" I want to remove each of the information and store it in an array . obs: I'm reading from .txt file .     
asked on 08.08.2017 / 20:05
3
answers

Code line ignored [duplicate]

The line marked with /*ISSO AQUI*/ is being ignored, ie the name for the second employee is not read, only the last name. import java.util.Scanner; public class EmployeeTest { public static void main(String[] args) { Scanner in...
asked on 27.02.2017 / 18:23
3
answers

What is the correct option for instantiating a class in PHP?

What is the correct option for instantiating a class in PHP? Whereas the class is under discussion if you call Atleta : 1) $atleta=Atleta; 2) $atleta= new Atleta(); 3) $atleta= Atleta(); Which of the 3 options is...
asked on 09.11.2016 / 12:11
3
answers

Function with variable quantity of parameters, what better way to do it?

I would like to do a function without setting the required number of parameters. What ways or alternatives can I use to get this result?     
asked on 19.05.2014 / 15:26
3
answers

How to use an object to add to an attribute?

When I do the code below you get this error:    Object of class Client could not be converted to string in ... \ animal.class.php This part does not allow me to pass an object to be used in the "owner" property $dog = new Cachorro('Rex'...
asked on 29.12.2014 / 05:18
6
answers

Turn result combining function into a dynamic function

I have a function that generates all possible combinations of numbers from 1 to 10. The combinations are 4 numbers, ie each combination has 4 different numbers. Ex: [1,2,3,4], [1,2,3,5], [1,2,3,6] ... [7,8,9,10]; I can specify the range of...
asked on 04.09.2014 / 22:44