« first day (1685 days earlier)      last day (3256 days later) » 

12:06 AM
The rants about PHP in the KS room
http://i.imgur.com/6FNMxHA.png http://i.imgur.com/SKa9R9h.png http://i.imgur.com/e39oXWo.png

....
Makes me lawlz
 
@MikeM. funny, because the hash function thing only applied to PHP/FI 2
 
Just because his opinion is that it sucks doesn't mean he has to rant at people using it and liking a language
 
Still hard to believe it happened. PHP has scalar type hints. And I helped get them in. Wow.
 
like for realz I don't get that some developers or designers are ranting/fighting about something trying to force their opinion into others...
Could anyone explain that to me.
 
@MikeM. node.js / ruby / python people live in a parallel world imho. while the whole industry is moving to stricter paradigms, they are happy with their weak duck typed languages
 
12:17 AM
neither js or python are on this parallel world
also "the industry" makes any opinion falls into discredit, immediately
since when we got a memo saying that every language should move towards the same direction?
 
That's an impressive job on pp, @marcio.

The tests are not yet working, are them?
 
I am going to sleep :-)
I am getting tired, alarm is set at 5:45AM and it's 2:20 AM now - great job getting a shitty JS script working...
 
@MarceloCamargo I need to finish the test runner so we can throw a lot of tests and finish the /* TODO */
 
The more people obsess about this typing nonsense the more I am reassured it's a problem no one has :)
 
is there some kind of stand alone phpt test runner? I need something reusable.
 
12:22 AM
@marcio they should not. but you can't even disapprove someone if they chose another direction
 
Your implementation is quite understandable and good to extend.
 
@Worf at least PHP did the "right" thing for PHP and used a switch so you can have it all
2
 
OT: When a bug breaks the entire tool, how is it called? I guessed "breaking bug", but that doesn't show up any results on Google.
 
@MarceloCamargo great, I'll PR it fy then along with the test runner
 
Do someone would help sorting my schedule array ? I'm almost done but still have a bug where data shift from expected position...

http://pastebin.com/9EG4Dybv
(Can't use codepad.org array_column is not supported...)
 
12:36 AM
@JonathanLafleur github.com/ramsey/array_column <- there is a polyfill
 
12:50 AM
:\
 
when i add a new zend_class_entry to CG(class_table) it should be freed by destroy_zend_class dtor ? but when i allocate it with emalloc i get a detected memory leak from PHP. i'm i totally wrong ?
 
@CodingInsane I think i'm the only one online, and I can't help you with that sorry :( lol
 
@CodingInsane What are you trying to do? Most people don't access class_table directly - instead they use zend_register_internal_class
 
i'm registering a ZEND_USER_CLASS.
@Danack uopz is doing the same, but i can't seem to find where it actually frees it
 
1:23 AM
keep it with malloc for now :)
 
2:18 AM
@CodingInsane I think I usually do arena allocation for zend_class_entry.
 
 
1 hour later…
3:36 AM
@Gordon Can you give me your opinion of why this is a bad meta question? meta.stackoverflow.com/q/294753/538216
Does the fact that it takes mod approval immediately bar discussion or something?
 
Good Morning Everone
anyone have idea about this ?
3
Q: Issue in table sorting inside expnadable table in codeigniter

Harshal KalavadiyaI want to sort my table data in expandable table view so I tried below code Code Link and my view is as below image when I use above link code and put in my site at that time it is not working in this type of view like expandable table view , sorting is not performing in expandable table vie...

 
4:01 AM
@NullPoiиteя
 
don't randomly ping people @HarshalKalavadiya
 
 
2 hours later…
6:15 AM
@LeviMorrison imo it's not a bad question. and the fact that everyone was dv'ed hints at some bot script to me
 
sup?
anyone expert in magento?
just want to ask something
 
6:37 AM
 
Morning pretties
 
7:14 AM
/me blushes and curtsies ...
 
incidentally, returning to the discussion of encrypting session data. I checked the implementation of our session encryption code (added a while back to comply with ASVS requirements), and it does indeed put the encryption key in a separate cookie. As it turns out that's not so ideal because we had some issues getting that cookie through some application firewalls. A PHP native implementation of encrypted sessions should instead put the key inside the session cookie.
 
hello.. I want to make a FAQ section with a search engine kind of thing where someone can search for specific topic. I need to know if it requires any special mysql query than the normal wildcard. I am using a PHP framework which is opencart
anyone?
 
@JoeriSebrechts why would you do that ?
I can't think of a valid reason to encrypt session data ... there probably isn't one ...
 
well, if an attacker obtains access to the web server's disk they cannot read sensitive data out of the session files, because they don't have the key
(read-only access obviously)
if they have write access they'll just put some code in place to get at whatever they want
 
if they obtain access to the disk, it is game over anyway ...
 
7:29 AM
well, they might for example get access to a backup copy
 
these are not problems at the application level
 
it happened to the belgian railways, who accidentally put a backup copy of some systems on their public web server
 
they are problems at the infrastructure level ... not to be solved in code ... it doesn't make sense ...
 
i would agree, but defense in depth is a basic strategy of secure design, assuming every layer can have flaws and trying to defend against those flaws in other layers
e.g. you don't need to care about sql injection if you sanitize your inputs, yet in practice you do both
 
but you're creating more problems than you solve, shutting one door to open another isn't really a good strategy at all ...
 
7:31 AM
what problem does encrypting session files create?
it has a minor performance overhead, but other than that...
 
you're sending keys to the browser, what if a client is compromised ?
 
you're sending keys to the browser used to encrypt something that otherwise wouldn't be encrypted
worst case scenario you're no better off
but if an attacker has access to the session files, but not to the user's cookie, they caznnot descrypt, so you gain something
 
if an attacker has access to your disk, why can't they just read information from whatever database you use, why do they need to access a session at all ?
can't they access all your source code on the machine anyway, can't they cause a lot of trouble without needing access to session files ...
 
if they have full system access like that, yes, it doesn't protect you
but there are scenario's (rather obscure, but possible) where they have a read-only copy of the disk, but no internal network access
 
well no, they can cause a fair amount of trouble with read access ... can't they still read personal info from your users store, possibly cc info and that sort of thing ...
 
7:37 AM
Hello
 
all data is kept in a session file or in the database, and the database is on a separate machine
so if they have only a read-only copy of the web server, all they have is a bunch of encrypted session files without any keys
i agree it doesn't add much security
 
okay, but why move that kind of data from db to session in the first instance, surely that is not necessary ?
 
we did it primarily to pass ASVS checklists, specifically the one that all sensitive data must be protected against unauthorized access
we debated whether to move all session data into the database or not
but it was rather impractical at the time
though we're looking into it again now
 
well I don't think you should do that, but what I'm saying is why not leave the sensitive stuff, real names, cc info and that sort of thing in the database ...
 
normally we do, but the thing is, when you have a team of 30 developers, you can't assume everyone does the right thing
so typically we'll assume people will do the wrong thing and try to protect against that
code reviews only catch so much
i've come to the realization that the use of sessions is an anti-pattern though
 
7:42 AM
improve your code reviews ...
 
@ŠimeVidas I have to fetch task using ASANA API for specific project of a user. Please can u help me how to generate URL request ?
 
it makes it hard to implement a clean architecture, especially at scale
because you have this state which is not in the database but still must be taken into account
so i'm thinking of ways to move to sessionless operation
 
in summary, "we encrypt our sessions because of a poor code review process" seems to be your position ... you must be able to see this is a crazy position ...
sessions have their place, it's a million miles from any sensitive information ...
 
i wouldn't quite put it like that :)
 
no, of course not ... you'd dress it up like you just did, with many justifications :D
but better code review would lead to secure use of sessions, right ?
that would eliminate the need to think about encrypting your sessions, right ?
 
7:45 AM
if you think it's possible to have code review which catches all bugs and design issues, then i'm interested in your magical approach to code reviews ;)
 
it doesn't seem that hard to spot to me ...
I can be wrong ...
 
Hrm, I didn't know that the date(); function was affected by timezone on the server when you provided it with a hard coded unixtimestamp..
 
i think that of almost every bug that slips past code review
 
the root cause of the problem seems to be that you're moving stuff from db to session that you shouldn't be, that doesn't really seem to difficult to spot ...
 
well, i don't know about any sensitive data in our sessions to be honest
 
7:49 AM
HI guys, I am trying to test an API with Chrome Postman and I am trying to do the part in the how to guide api.developer.betfair.com/services/webapps/docs/display/… called "Details of a Login Request" and its asking me to do something with the ssl cert in point 2 can anyone explain this a bit more for me please.
I think its asking to use the SSL certificate i made but how do I do this with a post
 
I'm not really sure if you're looking for advice, but if this is a big thing for your application and you have 30 odd developers, then it's probably time to put a security team in place, have them focus on this kind of stuff and reduce the risk of a bug slipping through the net, in addition, have the security team write an internal standard, telling everyone stuff like SELECT * FROM is going to be rejected in audit ....
 
oh, don't get me started on what happened to my security team ...
we used to audit every line of code for security ... it was not my choice to stop doing that
but even if we still did, i would still keep the session encryption feature in there
it doesn't cost anything to keep it, and i don't trust audits to catch all issues all the time
i don't trust any particular step or piece of code to do its job properly
the more layers of defense, the better
 
the limitations of that are easy to see ...
 
If I convert a date (with no hour/min specified) into a unix time stamp, shouldn't the time stamp be the same on all servers?
 
8:03 AM
But the ex. 15-05-15 (d/m/y) is 15-05-15 no matter where you are.
 
Morning
 
no it isn't
a unix timestamp doesn't know about timezone
moin fab
15-05-15 comes an hour later in france, two in germany, and so on ...
 
So if I do convert 15-05-15 into a unix timestamp in france i'd get 1500 (just pretend it's that), and if I convert the same date over in germany I'd get 1600?
 
something like that yeah ...
(might be 1500/1400, I'm crap at dates, but the point is they are not the same)
what you need to do is configure your servers properly :)
 
Morning
 
8:09 AM
Right, I was certain that the unix timestamp would be the same no matter where, so I got rather confused when my dev server showed one date but the unixtimestamp website showed another date.
 
no matter the location of the machines, it's a good idea to use UTC or GMT for your timezone across all devices ...
 
I got a question, in codeigniter I have a controller called pages and method called id with get the 2 param and create the url like pages/id/Become-a-Partner/23 and its working fine but i want to show the url like pages/become_a_Partner. how to achieve
i would really appreciate any link or idea to make it work
 
@Retro use a router instead of framework magic
 
@Patrick You mean in .htaccess?
 
hi all
 
8:22 AM
@Retro no
 
@Patrick can you guide me or any link which can help me, I would really appreciate
 
guys, I have, in my db, an abstract folder system. Which means some tables with entries like : folderId, folderName, folderParent (is just a folderId)
I need a php function that retrieves me an array of arrays, like this :
[folder0[folder1[folder2][folder3]][folder4[folder5]][folder6]][folder7]... & so on
meaning : folders 2-3, contained in folder1, contained in folder 0,... ... can anyone help on this?
 
@Retro google routing and codeigniter. It's in the official docs...
 
okay, thanks
 
8:33 AM
posted on May 28, 2015 by kbironneau

/* by Doctor Lead */

 
no one?
 
hey guys, I've got some files here that need sensitive data to be replaced with fake data. Is there a language that's "best" (or more) suitable for this than something like java/python etc?
 
@Brunaldo not enough information
@Julo0sS please delete that, copy to pastebin and share a link
 
@Julo0sS then write something that retrieves you that...
 
@Julo0sS read on nested sets
 
8:45 AM
a bit confused about it, i dont know how ^^ this is why i ask @Patrick
 
mornigng
 
ok, the files have bits of sections of text that are sensitive info. for instance John:id123:2015 . In this case I'd need to replace "id123" with something like id199 . The data is split by colons and the data is all the same format as shown. if you need more info tell me please!
 
John:id123:2015 sounds like a terrible database design
 
@Brunaldo that is very simple and pretty much every language can do that
 
8:47 AM
s/sounds like/is
 
@Brunaldo any language, most probably you'll use regular expressions, are you familiar with them?
 
@PeeHaa lol tell me about it :(
@SergeyTelshevsky not really. i just know the basics. I was thinking of using bash script?
 
Morning
 
Monring @StephenWolfe
 
@PeeHaa did you recommend Chrome Postman to me for testing API's?
 
8:50 AM
@Brunaldo you may try something along the lines: stackoverflow.com/questions/22003995/…
or simply google bash csv replace
 
@StephenWolfe Nope I did no such thing. I can see it being useful though :)
 
.csv is similar to your format, but it uses , instead of :
 
@PeeHaa ah okay :D its alight I am still finding my way around it
 
nice. thanks @SergeyTelshevsky
 
9:10 AM
When should you consider building an application using node.js rather than PHP?
 
@StephenWolfe when you fall in love with nested closures
 
I am just seeing why people would recommend using Node.js for an application. It seems to me that the advantage is speed when dealing with objects and object databses
oh and also a unified language across the stack.
 
only thing I found to build in node.js was a websocket server and only because there were no prod-ready solutions in php back then
 
@StephenWolfe Unified language is nice, but you won't do OO with it, you'll be doing functional right.
 
9:22 AM
@Fabor awesome
 
user1648409
9:39 AM
1
Q: Database abstraction layer ontop of mysqli

Shiuyinwhen trying to build robust database code (table locking, transactions, etc) i am always annoyed by the mass of code that needs to be done. For example a transaction out of two prepared statements where i want to delete a user and update something about him in an "actions" table: Lock Table us...

 
Are here any fans of git flow aka "I have no idea what I am doing" ?
 
@AlmaDo You no liek git flow?
 
@Jimbo no..
 
@AlmaDo So no sort of git methodology, just commit all the things, is better?
 
@Jimbo ?
how that relates to git flow?
 
9:51 AM
@StephenWolfe Node.js is a good alternative for tasks that php isn't great for. for example, you might build a small node.js daemon to process jobs it receives from beanstalkd or some other job queue. you might also build a real time server component in node.js and give it access to your sessions via redis or memcached
 
@AlmaDo It imposes order and a structure (workflow) for commits, pushes and merges, and that's about it right?
 
@Jimbo no
 
@r3wt so what I was to use node to fetch json data and enter it in to a DB?
 
-4
Q: Check whether a POST occured for an object name of particular patter

SaswatSpecial Request: Please don't unnecessarily down-vote my question. I am here to get help. So please help(if you can and if you want to) instead of creating hurdles like down-voting, closing, etc. Another Request: If you really want to help, then help me in my code instead of editing my question....

 
@StephenWolfe you could do that in any language
 
9:52 AM
This dude just doesn't want his question editted
 
@AlmaDo as in a branching model, like.. this. If it's not, then I'm confused :-)
 
it does whatever magic you defined. and that's the problem - because when one who has only bare idea what git is interprets that as "some command" - he has no idea what he is doing with the project (under the hood)
 
@r3wt I wouldnt know what PHP isnt good for TBH
 
i wrote a bot earlier to register a random username on github and bomb peoples repositories with issues
 
that's a good way to make friends ...
 
9:55 AM
yeah, i know. i just wanted to see if i could beat githubs authenticated token pattern
 
I think I should do one for SO then too
 
i would never spam SO. SO is awesome.
 
and github isn't?
 
@SergeyTelshevsky github doesn't solve my problems >(
 
@SergeyTelshevsky i just said i built it, never said i used it
 
10:02 AM
if you never used it, how do you know that you built it (= that it works)?
 
Eh, i don't yet
@Epodax lol, right
 
0
Q: How to access github API though oAuth2 via php curl?

underscoreI'm kinda new to github API as well as to the oAuth2 API so i was write a code like bellow to access github API but it return NULL at the end? what are the possible error points would be ? <?php class curl { private $ch; private $url; private $param; public $serverReturn; ...

 
$the_problem = curl_getinfo($this->ch);
 
$the_problem = @mysql_connect();
 
10:09 AM
$the_problem = '_';
 
$the_problem = self;
 
$the_problem = 'no_cookies_left';
 
Hi
Is there anyone from Drupal
 
@PeeHaa i haz no cvs
 
10:20 AM
@manashb I'm from Denmark, but I never heard of a country named Drupal tho.
 
:D lol
 
i'm sure you've met alot of people from its sister state, Wordpress
 
:)
 
@r3wt /me boos
 
/me has been booed off stage
 
10:22 AM
@manashb seems the practice, for every question asked there is a person who comes up with a scathing tease, don't worry ;)
 
scathing teases are great motivators
 
@r3wt Finally some one understands! People always called me mean, but all I ever wanted was to motivate them :D
 
i've asked alot of dumb questions on stackoverflow lol
 
@Epodax I don't know, I think a newbie at first sight is not able to understand your meaning
 
i've often wondered what the name PeeHaa means. were you taking a piss one day and were like "Aha! i've got it!" — r3wt 12 mins ago
lol
 
10:32 AM
ahahahhahaha
 
He's writing PaaS... "Pee as a Service".
4
 
@Simone It was a joke, I can't be mean to anyone.
 
@Jimbo Writing? I have been giving you people PaaS for 4 years, 6 months now...
 
@Epodax I know :) but for a newbie it's a different thing...some might take offense
 
Offense to what? That I'm not from Drupal? :O
 
10:35 AM
ahahhahaha
 
@Jimbo RKelly will sue
@Simone thats the point of a scathing slight. the noob should be so pissed that they are motivated to prove the peanut gallery wrong
 
mmmmh peanuts...
 
hi guys
from many days one thing is circling around me .... why we use static methods in a class?
please anybody explain...
 
@r3wt I understand your point of view ... it not necessarily works... When I was young I played at soccer and there was one year in which the whole team was against me because I played badly and the coach from the bench the whole time was shouting on me to motivate me ... but instead he demoralize me more
sorry for the choppy english :D
 
@John Laziness. But faster than creating an object and destroying it. Essentially they let you write procedural code in an object oriented context. You decide if that's a good idea or not.
 
10:49 AM
@Jimbo thanks for your laziness reply imgur.com/DlWK56t
 
Can anyone tell me if there is something I need to conigure to use this script other than the APIkey and SessionToken github.com/betfair/API-NG-sample-code/blob/master/php/…
I can make requests using the same settings in Postman, just cant get this script to return anything
POST /exchange/betting/rest/v1/listEventTypes/ HTTP/1.1
Host: api.betfair.com
X-Application: WoLzoSlMARnyJ1tE
X-Authentication: DEh8wysZ4obopxk720BV6XznfOBJrD3YScvI6+8I0tY=
Content-Type: application/json
Accept: application/json
Cache-Control: no-cache
Postman-Token: 9f08bcb2-ec3c-1db1-690c-73535c90459a

{"filter":{}}
That works
 
if I echo out the status code its not getting one :/
 
posted on May 28, 2015 by kbironneau

/* by Discover */

 
11:05 AM
Will she ever look older than 14 -_-
 
afternoon all, i hope you can help., i'm having a weird Apache issue. I have a number of vhosts but one of them doesnt seem to work. The vhost is valid and within sites-enabled, when i try and load the domain a different site is rendered, almost like the vhost isnt loading. Tailing both access and error logs for this vhost shows no activity when trying to load the domain. So i'm thinking it's not actually loaded. Any troubleshooting advice?
Stupid chrome DNS cache
argh this annoys me so much
yay, solved my own issue
 
11:32 AM
 
going by that metric all code that fully implements a real-world business process is bad code :)
 
¯_(ツ)_/¯
 
good / bad code is like beauty - it's in the eye oh the beholder
 
11:58 AM
moin
 
morndom
 
> kriss kross is going to make you
 
now i'll have that stuck in my head the whole day
 
Good good
:)
 
i always have a kill switch: if i listen to britney spears i'll have that stuck in my head instead. i know this from experience
but it's a bit like deleting your source code because you can't find the cause of a bug
rather drastic
 
12:07 PM
@MarceloCamargo It's funny, a senior at another company actually said "You write good code" - Was he high!? - when does any dev say another dev writes good code?!
 
he probably left off the second part of the sentence ("except for...") to be nice
 
Nah, I asked for any and all criticism and he said he had none, just asked for a few explanations of my design choices and that was about it ;)
 
@Andy yeah, like if most of the PHP guys liked obese, pimpled, stinky and dirty mental girls full of problems
 
@SergeyTelshevsky Mentals girls are the most exciting to date, you never know what's going to happen.
 
12:28 PM
@Jimbo Devs commonly hate other devs.
 
Hence why it was weird
 
@MarceloCamargo I mostly just hate @Jimbo, but that's mostly geography.
 
I can say 9/10 here hate me too. That's the sad world.
 
@DaveRandom Now now... next time I see your mum I'll be sure to tell her how you are behaving.
3
 
@Jimbo Want me to pass it on? I'm with her right now!
 
12:31 PM
@PeeHaa Oh, are you in the front? I was wondering who that was.
 
lol
 
This discussion seems worth following for a few minutes :P Please continue ^^
 
I love this room
 
you love it literally, it seems
 
@SergeyTelshevsky is there unliterally love?
 
12:32 PM

@DaveRandom's Mom is a stand up gal

1 min ago, 1 minute total – 5 messages, 4 users, 1 star

Bookmarked just now by Dan Lugg

7
 
@DanLugg Ouch, watch your foot! Gosh, there's not really much space for 8 guys and @DaveRandom's mum in this room
 
> What's the difference between jam and marmalade? You can't marmalade your *** in a ***
 
wow, this room today D:
What happened to @Lusitanian's mum?
 
She's here too, it's kinda crowded.
 
@FlorianMargaine I don't know love :(
 
12:34 PM
@DanLugg I actually lol'd
 
:-D
 
@Ocramius Yeh I am sorry but I may have to bin the last 5 mins, I don't want to be a spoil-sport but this is epic flag-bait.
 
Also ^ what is that last sentence!? !
Mar 21 '14 at 18:45, by webarto
@bdb.jack Artax by Lusitanians mom boyfriend @rdlowrey.
 
@DaveRandom It'd be neat if blocks of messages could be tagged as NSFW, and autocollapse (but not be binned)
 
12:37 PM
Yeh I don't really want to bin it, maybe if we just type it off-screen no-one will notice
 
@DaveRandom flag bait?
 
Rather, it'd be neat if tags worked like that in chat in general.
ASS BUM TIT
 
@DanLugg NSFW? Like... when you told everyone not to google image search "ass cactus"?
 
Would be easy to with a browser ext but that's kind of missing the point
 
@DaveRandom Of course, I mean as a builtin
Opt-in NSFW
 
12:39 PM
@Jimbo /me does an image search. I am dissapoint
 
actually this kind of conversation is what happened here the first time I visited room11, maybe that's why I decided to stay
 
@PeeHaa You need to prefix with "Jimbo loves"
 
why does
 
@DanLugg :P
 
@IPAddress because
1 message moved to bin
 
12:41 PM
while($row = mysql_fetch_array($result, MYSQL_ASSOC)) {}
 
sorry :-(
 
work but..
while($row = mysql_fetch_assoc($result)) {} not work
the code to run is echo $row['name'];
 
@IPAddress Please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
Not used that for a while...
 
okay then
 
[tag:name] [meta-tag:name] [chat-tag:name] <-- would be swell
 
mysql_* are from hell, @IPAddress.
 
@IPAddress Define "not work" (error messages?)
 
Use PDO or mysqli.
 
mysqli_fetch_assoc()
 
@PeeHaa Oh you absolute shit
 
12:43 PM
:P
Mad paint skills yo~!
 
is there a place where i can post php code ????
 
I never found any more pics of teresko online so I can't photoshop his head onto the lead singer from The Darkness very well :-(
 
:(
 
@Jimbo You can probably get a still from the room 11 video chat thing we did ages ago
 
12:45 PM
I wish there were a shortcut to making a class final except the constructor.
 
I think it will still be available online somewhere, it was a Google hangout, I think they're all recorded by default?
 
@DaveRandom Sucks I missed that, how many people were in? Also, link a all?
 
Rather than having to mark all methods final.
 
12:46 PM
@PeeHaa I KNEW IT
 
O_o
 
Is that Teresko?
 
I'm a paint rockstar!
 
He also hates me.
 
@MarceloCamargo No, he's watching through the door though.
 
12:48 PM
@PeeHaa dd if=/dev/ass of=/dev/head ?
 
@Jimbo Can't find it :-(
@IPAddress Well, that makes no sense. Either you have found a very weird bug or (far more likely) your bug is somewhere else.
 
so it should work?
 
@DaveRandom We should do that again; last time I kept popping in and out, drunker each time, but I was rather intermittent.
 
In javascript you can do string.charAt(2)
is there anything in php like that or do you have to do...
 
12:54 PM
@DanLugg announcement for the Room 11 summer BBQ?
 
$string_array = str_split($string);
 
Requirements: everyone is in their garden with a portable bbq and some burgers
 
You can access by the index, @IPAddress.
 
$string_array[2]
 
You don't even have to convert to an array.
echo "bar"[2];
Will output "r".
 
12:56 PM
Im soo stupid
i didnt even know that
nice edit marcelo
 
Ah, an JS does the same.
 
it might output a character, or it might output garbage (when using it on UTF-8 text)
 
@MarceloCamargo when would be a good use of the str_split() function??
 
charAt similarly can return half a character
 
When you really need to work with the form of an array, that is a very hard to happen event.
Strings are no more than arrays of chars.
 
12:59 PM
yesterday, i created a code where if a number is rounded to the next integer, leave it
but if it stays the same add 1
because if i have 14.85 cakes it would round to 15 which is good
 

« first day (1685 days earlier)      last day (3256 days later) »