Solved

Hot to add DIV to PHP function

Posted on 2011-02-27
3
344 Views
Last Modified: 2012-05-11
Hello friends,
I have this PHP function: $product_details = $VM_LANG->_('PHPSHOP_FLYPAGE_LBL');
But i need to put 'PHPSHOP_FLYPAGE_LBL' inside div with class. How can i do it?

Thank you.
0
Comment
Question by:DanSmir
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 250 total points
ID: 34992565
I do not know this predefined variables but try like this:
$product_details = "<div class='myclass'>".$VM_LANG->_('PHPSHOP_FLYPAGE_LBL')."</div>";

Open in new window

0
 

Author Comment

by:DanSmir
ID: 34992605
Yourrrrr GOD :)
Thank you!!!
0
 

Author Closing Comment

by:DanSmir
ID: 34992608
TXXXL!!!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question