Simple ...
I need to know the position of a value (the smallest value) within a vector, to find out the smallest value I'm using Math.min() but to print the result I need to know in which position the value is in the vector. It could be...
I have the following array:
array(3) {
[0]=>
string(22) "VALOR 1"
[1]=>
string(10) "VALOR 2"
[2]=>
string(14) "VALOR 3"
}
I need to show all values of this array but delete the first, which in this case is "VALUE 1". Ho...
Given what I've tried:
<html>
<body>
<script>
var nome = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
var remover = nome.slice(0);
function shuffle(array) {
return (Math.round(Math.random()) - 1);...
Hello, I'm trying to make a query using vector, but as far as I've learned the sql command does not hold the vector of the form I'm doing so my result is empty.
$idcliente=$_SESSION['id_cliente'];
$loja=$_POST['loja'];
$quant[0]=$_POST['quant'...
The idea is to receive a 4-digit number and then perform a variety of accounts but there is an entry condition:
If in the middle of the 4 digits is a character other than a number then I need to print it.
No use of methods.
I can not make...
I want to display a report separating results into date groups as shown below
| REF. | NOME | DEBITO |
=====================================
| X741852 | MARIA | 2.500 |
| B890656 | EDUARDA | 500 |
|
| Data: 2...
I'm trying to mount an array with the list of email addresses for phpmailer to send. But I'm having problems.
No error is displayed, php simply does not send the emails.
I am mounting the array like this:
// Define os destinatário(s...
Hey guys, after a lot of work I got several xml tags to play in an Excel report. But when I populate the list with my object and step into the report only the last element is listed. I already made some System.out.println to show the elem...
I suppose I have a list of names in array in Javascript. But I'm looking for a suggestion box style, where you just press an alphabetic key inside the field and as soon as you get key word tips for the letter you typed in.
Here is a simple...
I want to leave here registered my solution to this problem.
$data = file_get_contents("/ImagePath/Image.jpg");
$array = array();
foreach(str_split($data) as $char){
array_push($array, ord($char));
}