Questions tagged [php-7.2]

Use this tag for version-specific issues relating specifically to PHP 7.2.Use with the [php] tag

Deprecations: https://wiki.php.net/rfc/deprecations_php_7_2

GA release is scheduled for 2017-11-30: https://wiki.php.net/todo/php72#timetable

724 questions
-4
votes
2 answers

"Parse error: syntax error, unexpected ',', expecting ';'" laravel 5.5 in xampp 7.2.2 / PHP 7.2.2

why am I getting this error while getting data from database in my controller? I use laravel 5.5 and php 7.2.2. public function create() { $categories = Category::all(); return view('post.create'), compact('categories'); } "Parse error:…
Sayyid Mahdy
  • 47
  • 2
  • 9
-5
votes
2 answers

How can i access Return value throught the construct() from another function In PHP?

I'm trying to access the return value of the test() inside __constructor() but I stucked it. anyone Can tell me about that how can I get the return value from __constructor(). I appreciate your answer! class some { public function…
Ericgit
  • 6,089
  • 2
  • 42
  • 53
-5
votes
1 answer

Get next five saturday date of the last month

I need next 5 saturday from the last month. eg. current date is 07-04-2018 so I need 5 saturday of the last month. output- 03-03-18, 10-03-18, 17-03-18, 24-03-18, 31-03-18. I can get it by using below but this is completely hardcoded. How can i…
-6
votes
1 answer

What is the difference between session_id(), session_create_id() and session_regenerate_id() in php?

What is the difference between session_id(), session_create_id() and session_regenerate_id() in php ? I am already on php.net but there is a un-explained and broad definition of these 3 functions which cannot be understand well. There are also 50%…
Stack Overflow
  • 1
  • 5
  • 23
  • 51
1 2 3
48
49