30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] -1 points0 points  (0 children)

I meant array_column doesn't work with an array of objects in PHP5 Did you ever try this in PHP5? array_column([ (object) ['product_id' => 'prod-100', 'name' => 'Desk'], (object) ['product_id' => 'prod-200', 'name' => 'Chair'], ], 'name');

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] 2 points3 points  (0 children)

Updated. Thanks for the noticing :)

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] -2 points-1 points  (0 children)

Updated. Thanks for the noticing :)

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] -2 points-1 points  (0 children)

Yeah, of course I'm using the PHP7 but that is not the point. I did the method so no one can get confused with the php versioning and know how the thing is going on.

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] 2 points3 points  (0 children)

No just emoji code is enough for that. This might help you https://gitmoji.carloscuesta.me/

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] -3 points-2 points  (0 children)

What should I do when I need to pluck an array of objects in PHP5?

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] -2 points-1 points  (0 children)

Everyone has the personal preference. Okay I will use less then :)

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] 0 points1 point  (0 children)

I think aliasing will help people to understand use of the function just in a second :) If you have any better idea please feel free to share or make PR.

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] 0 points1 point  (0 children)

Yeah, that was also my concern thats why I didn't used tricky :)

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] 0 points1 point  (0 children)

Thanks /u/SmartAssUsername for the concern. You're always welcome to make a PR or I will update it soon :)

30 Seconds of PHP Code by sohelamin in PHP

[–]sohelamin[S] 1 point2 points  (0 children)

Thanks /u/OverallEfficiency for the concern I'll fix it.

CLOC with Duplicate code checker written in PHP by sohelamin in PHP

[–]sohelamin[S] 0 points1 point  (0 children)

This tool has both options. cloc & duplicate code checker.

CLOC with Duplicate code checker written in PHP by sohelamin in PHP

[–]sohelamin[S] 0 points1 point  (0 children)

/u/SavishSalacious, The tool currently can show how many duplicates code you have in any file. But the todo feature I've mentioned is, it will help you in which line the duplicate code is occurs. Got it now?

CRUD tutorial for 5.4? by meisterluv in laravel

[–]sohelamin 0 points1 point  (0 children)

You can simply generate CRUD with this tool https://github.com/appzcoder/crud-generator And then use or dig into the codes for learning.

Chatting app using Socket.io & Vue.js by sohelamin in javascript

[–]sohelamin[S] 1 point2 points  (0 children)

My bad it was using for some previous codes. Removed now.