Skip to content

Graumenth/useful-PHP-information

Repository files navigation

Useful PHP information

Index

1- Multiple uploaded file array rearrange
2- ipinfo.io integration PHP and JS

1- Multiple uploaded file array rearrange

Multiple image array before the code:

Array
(
    [name] => Array
        (
            [0] => catvan.jpg
            [1] => Felis_silvestris_silvestris_small_gradual_decrease_of_quality.png
            [2] => QRCode.png
        )

    [type] => Array
        (
            [0] => image/jpeg
            [1] => image/png
            [2] => image/png
        )

    [tmp_name] => Array
        (
            [0] => /tmp/phpUuvg19
            [1] => /tmp/phpafB0T8
            [2] => /tmp/phpHcYBQ8
        )

    [error] => Array
        (
            [0] => 0
            [1] => 0
            [2] => 0
        )

    [size] => Array
        (
            [0] => 5429
            [1] => 160037
            [2] => 3673
        )

)

Multiple image array after the code:

Array
(
    [0] => Array
        (
            [name] => catvan.jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpIqOxqM
            [error] => 0
            [size] => 5429
        )

    [1] => Array
        (
            [name] => Felis_silvestris_silvestris_small_gradual_decrease_of_quality.png
            [type] => image/png
            [tmp_name] => /tmp/phpu7l13O
            [error] => 0
            [size] => 160037
        )

    [2] => Array
        (
            [name] => QRCode.png
            [type] => image/png
            [tmp_name] => /tmp/php4Gr3VO
            [error] => 0
            [size] => 3673
        )

)

2- ipinfo.io integration PHP and JS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published