Questions tagged as 'array'

0
answers

Transform strings into array or floats?

I have a problem: the user inserts two values, via graphical interface, separated by commas (I tested put in interface 10,0), and I need to transform these values into values that I can do accounts. I tried the code below, and I tested it by sta...
asked by 30.09.2018 / 22:00
0
answers

Show mesage on screen if file is outside 9 columns

My application le a csv file and convert it to pdf. For this I have the frontend in html to load the file. I would like to know how do I show the user a message stating that the file is invalid. The file will be invalid when the number of column...
asked by 01.10.2018 / 18:57
0
answers

Error (Undefined offset: 1) of PHP and jquery

I have a problem with working with array in php what happens, I have the following code: function AddRows() { var campos_max = 10; var x = 0; $('#add-row-fixe').click(function (e) { e.preventDefault();...
asked by 25.09.2018 / 23:18
0
answers

How to add value of an attribute in different pages of a json document

Hi, I'm a beginner in php I have this problem: I need to add up the total value of each sale of a json, but it is divided into pages! therefore, I need to add the total sales of each page Example: -In page 1: I have 100 orders, ea...
asked by 28.09.2018 / 22:37
0
answers

Arrange search using array

I have a problem, I did a search system by tags, I calculate the percentage of the search by how many tags have the result by how many equal tags (example: 10 tags of the result, 5 equal, or 50%). However I need to sort the results and it is not...
asked by 29.09.2018 / 02:29
0
answers

File_Put_Contents writes only half of the data

So I'm having a problem with my code, query, for, foreach and if work perfectly. However file_put_contents writes only half of the reported data. My goal with this code is basically to make a query of the bank, to return the result and in array...
asked by 18.09.2018 / 03:40
0
answers

Why is not my condition giving me the expected result?

I'm performing a line break without using the wordwrap() function. I'll get a string with the text, and an int with the length of characters allowed by rows as a parameter. I'll have to cut that string, then insert it into an already c...
asked by 24.09.2018 / 18:51
0
answers

Error converting array to xml

I have the following array: Array ( [mode] => default [method] => boleto [sender] => Array( [name] => Fulano Silva [email] => [email protected] [phone] => Array ( [...
asked by 23.09.2018 / 21:00
1
answer

Organizing order of the month in a php array

I used the function below to organize the month orders in ascending order, it works perfectly, but it loses the keys, when it creates the new array organized, the keys start from 0 ( zero ) again Array cluttered:    Array...
asked by 13.09.2018 / 14:00
2
answers

if with array listing

I'm picking up using arrays, I need to check values and make decisions depending on what I find in the listing. id | volume_total | volume_entregue | volume_restante 1 15 10 5 2 10 10...
asked by 19.09.2018 / 20:56