I have these two arrays below:
$a = [1, 2, 3];
$b = [1,[2, [3, 4]]];
I know that $a is a% one-dimensional%, and array , multidimensional (arrays array).
Now, how would I find out, through a function, that I returne...
I want to create a separate array in groups by date of the result of a query made in DB
example:
// [...]
$sql = $this->db->query($query) or die (sprintf("Falha: %s", $this->db->error()));
if ($sql->num_rows) {
while ($ro...
I'm doing a program for Arduino written in C ++ to turn on and off leds when a button is pressed.
I want to save the values of the LEDs that are on and the amount of brightness in an EEPROM memory.
I thought of using an array, so the first el...
How do I get / group indexes with equal keys in an array, for example:
Array
(
[field_label] => Array
(
[0] => Texto
[1] => Checkbox
[2] => URL
)
[field_type] => Array...
I would like to know how to run the entire array with ForEach only:
$Marcas = array(array('Fiat', 'Volkswagen', 'Audi'),array('Yamaha', 'Suzuki', 'Honda'),array('Samsung', 'Motorola', 'Apple'));
I'm having a hard time drawing a array in PHP with the following data coming from a JSON object, no, it does not come from a SQL query in a database.
Example of JSON :
[
{
"data": {
"ID": "349",
"use...
I would like to get the items in var a , a two-dimensional Array, and iterate in a nested loop, concatenating everything, to put them in brackets, separated by a slash, as shown by the desired result logo below, which will be stored in...
I'm trying to get a value inside an array, but it does not print anything from the id field, which is the field I want to get
$jsonc = file_get_contents("https://api.themoviedb.org/3/search/tv?query=todo%20o%20mundo%20odeia%20o%20chris&api...
I started an array ($ arrDados = array ();) and now I need to add information (array_push) so that I can access the information later as follows:
colA1 = $arrDados['NumeroEmpenhoAno']['code'];
colA2 = $arrDados['NumeroEmpenhoAno']['size'];
co...