Skip to content

How to grab the year from a string with php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I have a couple of strings which look like this: $string1 = ’03 Aug 2…

Calculating variable using attribute laravel

I have a simple code where I output the new age of a person. If a person is aged 17, it should output 18. But I’m calculating this on blade (which I think is bad). And I’m trying attribute to handle this, but since I’m very new to Laravel, I don’t know how to handle it. Please help me&…

Checkboxes values

I’m trying to get the values of the checkboxes I check and put them in a php variable, but when I output that value, it gives me zeroes (0). If I check 3 boxes, I get three zeroes, etc. Info: I want every checkbox that is checked, so if cb1 and cb3 are checked, I want the variable to be