Jump to content

jonny512379

New Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by jonny512379

  1. Thank you, makes perfect sense now, was just one of them things bugging me, and searching on google for "{} php" returns nothing (well it just ignores the {})
  2. just a quick question i notice in this post and in other post, variables are bing wrapped in {} eg: $daysInMonthy = date('t', strtotime("{$year}-{$month}-01")); //# days in selected month why is this? would this not be the same?: $daysInMonthy = date('t', strtotime("$year-$month-01")); //# days in selected month just asking out of curiosity
  3. Thank you very much, i will try to build a class, starting with what you have explained. Thanks!
  4. Hello All First question post, other than the usual introduction posts. FYI: i am OKish with php, but have never had a need to do the below I basically need to get every date in a given month, including the day of the week (i.e monday, etc). Ideally so i am given an array of dates (i.e with something like "$dates_arr = $calendar_obj->getDatesForMonth($month = 9, $year = 2015);") This is to build a kind of mini calendar. i would have assumed there are some inbuilt php functions/classes for this, but am struggling to find them. Can anyone tell me if there is anything i should be looking at, before i try to build my own class / extend DateTime, etc (as i don't think i need to reinvent the wheel) I would be grateful if anyone could point me in the right direction
  5. I tried to learn (not seriously) for a few years, but it never really sank in right... I bought a couple of books of Amazon (php/mysql for Dummies and a php/mysql Site Point book (i have since bought more advanced books)). I read them and realized i knew a lot more than i thought!! Once you have the syntax understood (which is easy once it is explained) the logic starts to piece together... PHP reference sites then answers most other questions i find As others say, build a site is the best way to learn i feel; And when selecting the type of site to build deliberately pick one that it slightly above your current abilities!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.