S
S
shasoft2021-07-31 21:27:44
PHP
shasoft, 2021-07-31 21:27:44

How to define a float array in PHP?

Is it possible in PHP to define the type of a function parameter as a float array? Those. not just an array, but an array of specific types?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitsliputsli, 2021-07-31
@shasoft

No, you can't create custom types for primitives. Use objects for such purposes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question