Home > Syntax Error > Php Syntax Error Unexpected T_return Expecting T_function

Php Syntax Error Unexpected T_return Expecting T_function

Contents

Can you post the code for that compiled view? It was a deletion error. Not the answer you're looking for? I checked the .blade file and the file in the app/storage/views folder.. http://back2cloud.com/syntax-error/parse-error-syntax-error-unexpected-t-return-expecting-t-function.php

What kind of weapons could squirrels use? Find out how to get involved in phpBB development. Laracasts is the defacto educational resource specifically for working web developers. while($posts = $result->fetch_assoc()) { array_push($posts, new Post($post['id'], $post['created'], $post['author'], $post['title'], $post['body'])); } return $posts; } share|improve this answer answered Sep 8 '10 at 12:11 BoltClock♦ 385k959371048 @Pekka: fine! :P Clicking Here

Syntax Error Unexpected 'return' (t_return) Laravel

current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Symfony\Component\Debug\Exception\FatalErrorException …/­app/­storage/­views/­0add851657bfefa43e6697e7e4f40ac443 Cancel Update Your Reply kreitje — 2 years ago Looks like you have an extra ; in one of your views. But what about those of us who already do that full-time, every single day? more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

Flash Tutorials View Flash Tutorials that help you with the use of phpBB. A word to describe meaningless exchanges in conversation How can I copy and paste text lines across different files in a bash script? "Have permission" vs "have a permission" How to Fortunately, we have found the error for you. Is it possible to send you the (searchajax).php file?

So buy Jeffrey lunch once a month, see for yourself, and massively level up your skills in the process. Parse Error: Syntax Error, Unexpected 'return' (t_return) function user_register($email, $name, $password) { $email = mysql_real_escape_string($email); $name = mysql_real_escape_string($name); mysql_query("INSERT INTO 'users' VALUES ('', '$email', '$name', '".md5 ($password)."')" return mysql_insert_id(); } php sql share|improve this question asked Nov 15 What is the main spoken language in Kiev: Ukrainian or Russian? anchor Money transfer scam Why not to cut into the meat when scoring duck breasts?

How much interest did Sauron have in Erebor? Gregor Says: September 28th, 2009 at 5:22 am I checked the whole php file, no ; before ?>. Extensions Forums Discuss and view Extensions that are available for download. International Support Find a 3rd party support site in your first language.

Parse Error: Syntax Error, Unexpected 'return' (t_return)

If you found this article helpful or interesting, please help Compdigitec spread the word. public function getPosts() { $result = $this->db->query("SELECT * FROM posts"); $posts = array(); while($posts = $result->fetch_assoc()) { array_push($posts, new Post($post['id'], $post['created'], $post['author'], $post['title'], $post['body'])); } } return $posts; syntax-error php share|improve Syntax Error Unexpected 'return' (t_return) Laravel Recent Posts LaTeX macros ending in numbers Phabricator LDAP (and other) account integration table Possible crash in method_exists() with PHP 5.3 Disable dragging of an element in JSXGraph Reverse engineering the Modifications DB Download or submit modifications to our MODs database.

Come here. http://back2cloud.com/syntax-error/php-class-syntax-error-unexpected-t-variable-expecting-t-function.php Was Sigmund Freud "deathly afraid" of the number 62? David Cobb Says: October 26th, 2010 at 4:50 pm I agree with the post above and I will find more information from google. me sale ese error usando un script que necesito .

It was a } missing at the end, just before ?>. phpBB Bug Tracker Report problems with phpBB core and other sub-projects such as the Website, Customisation DB, and Team Tools here. phpBB Ideas Suggest, vote on and comment on ideas for phpBB. get redirected here Board index All times are UTC Delete all board cookies Members The team Contact us advertisements Need Hosting?

Thank you so much for your help. is it not in the github? ? lo curioso es que copie y pegue dicho código en un script, y lo ejecutó sin problemas!! (yo uso php 5.3) pienso que nos esta mostrando un código que no es,

The line 519 is just ?>" The same error to me.

https://github.com/webdevdea/learningLaravel Best Answer — Thread Owner's Choice school danharper — 2 years ago https://github.com/webdevdea/learningLaravel/blob/master/app/views/home.blade.php#L44 {{ ($task->id }} Should be: {{ $task->id }} (the extra ( - same for every Well thank you :D –user1043816 Nov 15 '11 at 0:16 Glad to help :) –AlienWebguy Nov 15 '11 at 0:24 2 @user1043816 you should click the check mark Hay que empezar con

Hope this helped anyone who got stuck with this misleading PHP error. Currently it is outside or you have one } on the wrong line. Styles DB Download or submit styles to our styles database. useful reference If you're getting the "unexpected $end, expecting T_FUNCTION" variation (as egodi does above), it may be because you've forgotten to close the class declaration.

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed All rights reserved.