I have a list with registered items and one of the attributes of this item is a button to delete that item.
By clicking on the button I want to know the position of the line clicked inside the list.
When I know the position, I'll delete th...
I am getting an array by JSON , and using array_unique to remove duplicate values, however, it is displaying the following error: <b>Notice</b>: Array to string conversion in <b>/var/www/html/.... </b> on...
According to the Manual, array_shift removes the first element from the array.
I've seen a lot of criticism from the internet as to how to perform this function, since it reordered the entire index of the array with each removal, thus...
I have a grid-shaped form that returns the following values inside an Array:
array (size=3)
0 =>
array (size=5)
'pei_seq' => int 0
'prg_cod_barra' => string '7899619704729' (length=13)
'pei_prg_cod' => stri...
The code below aims to select a database record and save it in a variable for later use of the data:
#!/bin/bash
dbName='basedados'
dbUser='utilizador'
dbPass='password'
row=$(echo "select file_id, file from catalogue__pdf_file WHERE is_conv...
I have two arrays, A and B.
I have created 3 functions in which I take a value from the beginning of array A and array B, remove the values, compare the values and if the value of A is greater than B, I add the 2 values at the end of array A,...
I have the following array:
array[0,2,0,0];
I need to create a function that returns true if at least one item in the array has a value equal to or greater than 2