Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Remember Code?

Featured Replies

Hey people, so im learning PHP but I feel I keep forgetting important pieces of code i.e. how to write a file. I was just curious are their any tips I can use to help remember the language . Thanks

PHP can be a right bugger to remember at times, especially the order of $needle and $haystack (pro tip: it's almost always $haystack first if the subject of the function is a string, and $needle if it's an array).

 

Another oddity that gets thrown around a bit is array_map('callback', $array) vs array_filter($array, 'callback').

As Zed says, just keep programming... maybe making your own cheat sheets might be a good idea :)

 

also, your avatar is cool... that’s my all time favourite error

  • Author

Thanks guys for the help . The IDE I use is PHP designer 7. I kinda felt I couldn't learn the language as I kept forgetting code but I guess its like anything in life the more you do it the better you remember it.

  • Author

That's what I'm usi9ng right now at home. Make sure you have all the code completion setting turned on. As for code snippets, well it has a nice little section called 'code snippets' where you mcan save useful snippets of code, surprisingly :) See View > Tool Panels > Code Snippet and it will appear to the right of your screen.

 

Thanks this should help , I also managed to find a good cheat sheet.

I find code hints from my text editor invaluable, I can never remeber the corrent order of parameters inside my function parenthesis. As mentioned earlier, $needle and $haystack. I don't think I could even write an str_replace without checking the order of parameters!

I always have code hinting turned on in which ever IDE i use. Not just because i'd never remember all the code off the top f my head but also because it speeds up workflow thus productivity.

  • Author

I always have code hinting turned on in which ever IDE i use. Not just because i'd never remember all the code off the top f my head but also because it speeds up workflow thus productivity.

 

Thats a good point

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.