Message from @Undyne for fizz urf goat

Discord ID: 692192584571027507


2020-03-23 12:42:18 UTC  

<:gigachad:683016405243003013>

2020-03-23 12:44:15 UTC  

Ok but you also have a gt 1030

2020-03-23 12:44:38 UTC  

niggas in here have unbalanced systems

2020-03-23 12:51:05 UTC  

https://cdn.discordapp.com/attachments/691571900077309977/691630097693933649/unknown.png

2020-03-23 12:51:10 UTC  

<:gigachad:683016405243003013>

2020-03-23 12:52:39 UTC  

real eastern euro shit

2020-03-23 17:36:22 UTC  

WHO /windows7/ here?

2020-03-23 17:39:04 UTC  

https://cdn.discordapp.com/attachments/691571900077309977/691702571802296360/unknown.png

2020-03-23 19:41:47 UTC  

getting new parts on a few days

2020-03-23 19:41:50 UTC  

woo

2020-03-23 19:42:15 UTC  

just before prices rocketed due to corona

2020-03-23 22:28:14 UTC  

ffmpeg is cool

2020-03-23 22:55:46 UTC  

yes it is

2020-03-24 19:37:16 UTC  

I have a PHP question

2020-03-24 19:37:32 UTC  

I am good with other languages but not too familiar with PHP

2020-03-24 19:38:06 UTC  

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?

2020-03-24 19:38:19 UTC  

or do I just use the key?

2020-03-25 01:44:10 UTC  

@Undyne for fizz urf goat hmmm good question

2020-03-25 01:44:41 UTC  
2020-03-25 01:58:45 UTC  

@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

2020-03-25 02:06:12 UTC  

@gsfordham that's what I ended up doing with it "product_id" => $value

2020-03-25 02:06:39 UTC  

but I havent gotten around to testing everything yet

2020-03-25 02:06:46 UTC  

so I'm not sure if it works yet

2020-03-25 02:07:55 UTC  

@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

2020-03-25 02:08:13 UTC  

However, you CAN create numeric indices that have no flow

2020-03-25 02:08:44 UTC  

So, you can make an array with 3 items, and you can index 1 to position [17]

2020-03-25 02:11:56 UTC  

@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

2020-03-25 02:12:04 UTC  

lemme give you the program in a minute

2020-03-25 02:16:11 UTC  

```php

```

2020-03-25 02:16:19 UTC  
2020-03-25 02:16:40 UTC  

Enjoy trying to figure out why those fucking morons made the language work this way

2020-03-25 02:17:07 UTC  

```
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
```

2020-03-25 02:17:12 UTC  

That will be your output

2020-03-25 02:17:42 UTC  

Well... I used an online compiler to just do it quick, so the last line won't be identical

2020-03-25 02:18:35 UTC  

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

2020-03-25 02:22:08 UTC  

@Undyne for fizz urf goat Also, yes... it was written by *(((jeeeewwwwssss)))*

2020-03-25 02:23:30 UTC  

They call the scope resolution operator ``::`` 'paamayim nekudotayim'

2020-03-25 02:24:13 UTC  

> hebrew for double double colon
All you need to know, m8

2020-03-25 02:25:01 UTC  

---
Please let me know if I helped and/or if you need more help

2020-03-25 04:54:50 UTC  

@gsfordham that definitely 100% helps