TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
krishna vala
NA
290
73.4k
Updated version of php from 7.3 to 7.4.
Jul 29 2020 4:03 PM
I updated version of php from 7.3 to 7.4. In this i'm getting, error message in first line of code like
Array and string offset access syntax with curly braces is deprecated.
Here is my code
$excel=(string) Excel::create('Fees_' . date('dmy'), function($excel) use ($fees_array,$count){
$excel->setTitle('Fees_' . date('dmy'));
$excel->sheet('Fees_' . date('dmy'), function($sheet) use ($fees_array,$count){
$sheet->fromArray($fees_array, null, 'A1', false, false);
$sheet->cell('A1:Z1', function ($cells) {
$cells->setFontWeight('bold');
});
$sheet->setWidth('A', 5);
$sheet->cell('A1:A'.$count, function($cells) {
$cells->setAlignment('center');
});
});
});
Reply
Answers (
3
)
While loop values pass to php update query by submit button
Creating Master Details Form Like Sales Invoice