Title: need help from PHP programmer, beginer question
Last modified: August 19, 2016

---

# need help from PHP programmer, beginer question

 *  [godofcomics](https://wordpress.org/support/users/godofcomics/)
 * (@godofcomics)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/need-help-from-php-programmer-beginer-question/)
 * Hello, I am burning my brain cells for two hours now with no effect.
 * I want to do this:
 * ´<?php
    if ( function_exists(‘register_sidebar’) )
 * $samsung_Blogroll = “Lots of links. Check these for great joy.”;
    $samsung_Archives
   = “These are the archives, a collection of all the news and posts”; $samsung_Pages
   = “Articles, and content.”;
 *  register_sidebar(array(
    ‘before_widget’ => ‘<div id=”right-red”><div id=”right-
   red-top”>’, ‘after_widget’ => ‘<div id=”right-red-bottom”></div></div>’, ‘before_title’
   => ‘<div id=”right-red-title”>’, ‘after_title’ => ‘</div><div id=”right-red-text”
   ><?php echo “$samsung_%1$s”; ?></div></div>
    - ‘,
       ));´
 * See, I created three new variables for my widgets functions.php, so… I want the
   code “php echo $samsung_Pages” to show what I declared on the variable above,
   I will later change this to _Blogroll and _Archives using the widget Title being
   the code: %1$s.
 * Considering the title is Blogroll, Pages and Archives, everything should work
   fine.
 * But the only thing that trouble me is that I don’t know how to output / show 
   the content of the variables above at that specific field.
 * Please help ^^

The topic ‘need help from PHP programmer, beginer question’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [declaration](https://wordpress.org/support/topic-tag/declaration/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [var](https://wordpress.org/support/topic-tag/var/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 0 replies
 * 1 participant
 * Last reply from: [godofcomics](https://wordpress.org/support/users/godofcomics/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/need-help-from-php-programmer-beginer-question/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
