Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only orginal format #26

Closed
parsibox opened this issue Oct 13, 2024 · 4 comments
Closed

only orginal format #26

parsibox opened this issue Oct 13, 2024 · 4 comments

Comments

@parsibox
Copy link

hi
i need a method to get only orginal value of cells without any change like o in readRowsWithStyles
i do not want to change numbers for example 2.550010661102E+29
is it possible?

@aVadim483
Copy link
Owner

The array element with the key "o" from readRowsWithStyles() returns the original value stored in the cell, without any conversion.

But in Excel, the numbers are displayed in "float" format. For example, the number 12345678909 is displayed as is, but the number 123456789098 is displayed as 1.234567E+11

@aVadim483
Copy link
Owner

image

@parsibox
Copy link
Author

readRowsWithStyles contain too many other keys
i need only key "o"

@HergenD
Copy link
Contributor

HergenD commented Nov 29, 2024

readRowsWithStyles contain too many other keys i need only key "o"

$rows = array_map(fn($row) => $row['o'], $rows);

If you're concerned about performance impact, I doubt it will matter that much but ¯\(ツ)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants