
chhorn
Members-
Posts
115 -
Joined
-
Last visited
-
Days Won
2
Everything posted by chhorn
-
Did you try anything yourself? Like https://duckduckgo.com/?q=php+qr+code+reader
-
As said: you need a QR code READER (in php?).
-
So you need a QR code reader.
-
How to generate complex Multi-Color-Gradients with PHP?
chhorn replied to LarsFlieger's topic in PHP Coding Help
what's the formular for your pattern? -
i don't get any logic in that so why is EH totally missing, EH3 2 is undefined but gets a price and EH3 gets a price even that it's an exeption? Makes no sense for me.
-
what should "does [not] work" mean? i would recommend using foreach if you don't need a continious integer.
-
help with not showing php/html page in web search
chhorn replied to Chrisj's topic in PHP Coding Help
just use the "noindex" meta tag -
then your script will stop working.
-
Why isn't it able to find the max value if it's less than 5?
chhorn replied to imgrooot's topic in PHP Coding Help
For what data? Use SQLite in-memory to mock a databse. -
so you can interact with software that uses JSON as exchange format.
-
On the line before, just count them. count(open_paranthesis) === count(closing_paranthesis)
-
The database wrapper is not part of php-core so you have to completely debug that or ask the developer if it's not you.
-
Trying to echo data 3 levels deep into json architecture
chhorn replied to mosb3rgler's topic in PHP Coding Help
<?php $json = '[{"foo": {"bar": 123}}]'; $array = json_decode($json, true); $threelevelsdeep = $array[0]['foo']['bar']; echo $threelevelsdeep; -
Doesn't matter. It is returned, you just don't look at it. Open the webdeveloper console and switch to the network tab.
-
yeah, try something then?
-
just another variant: $myarray = [ 'articles' => [ 'href' => 'http://admin.contenta.com/api/articles'], 'blocks' => [ 'href' => 'http://admin.contenta.com/api/blocks'], 'categories' => [ 'href' => 'http://admin.contenta.com/api/categories'] ]; print_r(array_combine(array_keys($myarray), array_column($myarray, 'href')));
-
Why not just trying something first?
-
Place the first code before the second, then use the function output for string concatanation https://www.php.net/manual/en/language.operators.string.php
-
i would always recommend using var_dump() because it also shows info on null, boolean and empty string values. At least you can also use json_encode() for this, but it lacks on objects.