Posts by Pedro Silva • 147 points
5 posts
-
6
votes2
answers114
viewsQ: Error converting string to numeric value
I have a string and I need to convert it to number, in case I need to convert it to a real value, but I’m not getting it. Below is an example where I try to convert the contents of a string into…
javascriptasked Pedro Silva 147 -
0
votes1
answer31
viewsQ: Use AND and OR operators on the same condition
In the following example the check does not work if the page was sobre, in this case it displays the page servicos even though it is not the one requested in the validation. What’s wrong? I realized…
phpasked Pedro Silva 147 -
5
votes5
answers713
viewsQ: indexof does not find element in an array
The indexOf() is returning me -1 even though I have this element, I am doing so: pessoas = []; pessoas.push({"nome": "Pedro"}) pessoas.push({"nome": "João"}) pessoas.push({"nome": "Maria"})…
-
1
votes0
answers69
viewsQ: Paid asking to send a senderEmail even though I sent it
I am making a Curl and sending the data via Transparent checkout to the pagseguro. I am testing using the sandbox, until then it works well, the problem is that in the field senderEmail only works…
phpasked Pedro Silva 147 -
2
votes1
answer398
viewsQ: Flexbox leaving empty spacing
I’m studying flexbox and decided to create a menu, everything works well, but this getting a spacing without me having given, so I know the flex: 1 takes up all the space, but that’s not what is…