Message from @Undyne for fizz urf goat
Discord ID: 692094972131934359
i just noticed i have windows 10 home, not pro. i got bamboozled on ebay
imagine not pirating windows 10 pro
best part was it switched without even alerting me
<:gigachad:683016405243003013>
Ok but you also have a gt 1030
niggas in here have unbalanced systems
<:gigachad:683016405243003013>
real eastern euro shit
WHO /windows7/ here?
getting new parts on a few days
woo
just before prices rocketed due to corona
ffmpeg is cool
yes it is
I have a PHP question
I am good with other languages but not too familiar with PHP
if I wanted to do array[2] or something to access a specific value out of an array what would be the PHP equivalent in a key - value array?
@Undyne for fizz urf goat hmmm good question
@gsfordham help
@Undyne for fizz urf goat If you're using a key-value array, you should probably use the key name, instead. However, iirc, PHP associative arrays are accessed in the order they're inserted.
Lemme just build one quick, and I'll double-check for you
@gsfordham that's what I ended up doing with it "product_id" => $value
but I havent gotten around to testing everything yet
so I'm not sure if it works yet
@Undyne for fizz urf goat Turns out I was wrong, having not used it in so long. The index isn't built by number, so you will *have to* use the key
However, you CAN create numeric indices that have no flow
So, you can make an array with 3 items, and you can index 1 to position [17]
@Undyne for fizz urf goat Wait, double-correction...
Indexes that are added *w/o a key* go in in order...
This is why I hate this language
lemme give you the program in a minute
```php
```
Enjoy trying to figure out why those fucking morons made the language work this way
```
Very geyyyyyyy
32
yeah, shit shouldn't, but it do
Fucking fish or something
PHP Notice: Undefined offset: 15 in /home/jdoodle.php on line 25
```
That will be your output
Well... I used an online compiler to just do it quick, so the last line won't be identical
PHP is a language that seemingly has no God damn rhyme or reason, and I'd recommend almost any other language for a real project
@Undyne for fizz urf goat Also, yes... it was written by *(((jeeeewwwwssss)))*
They call the scope resolution operator ``::`` 'paamayim nekudotayim'