Posts by Diogo • 302 points
5 posts
- 
		1 votes3 answers1016 viewsA: Read Array out of foreachThe variable $range this having the value overwritten each time the foreach runs. What you seem to need is to add to the existing value, something like this: $range = ""; foreach($data as $key =>… 
- 
		10 votes4 answers1065 viewsA: Is there any way to extend an object in javascript?Yes, it is possible to extend using prototype. function Empregado(){ this.nome = ""; } function Gerente(){ this.departamento = ""; } Gerente.prototype = new Empregado… 
- 
		4 votes4 answers205 viewsA: How do you round it up in PHP?In PHP to top up is used the function ceil. Example echo ceil(4.3); // 5 
- 
		1 votes6 answers498 viewsA: What is the safe way to define a default value for a function parameter?I’m not sure if the statement that works on Firefox 39 works on all browsers. But the second implementation should work smoothly. Since if we call the function without parameters "b()" the variable… 
- 
		1 votes1 answer3075 viewsA: Open Modal Bootstrap from code-BehindThis code does not work because Scriptregister is registering a Startup script, that is how much the page loads for the first time, as it has already passed the script is not executed. The…