PHP syntax semi-colon (easy)

Posted on 2006-06-01
Last Modified: 2006-11-18
Hi all,
Silly question really just can't figure out what exactly to write to order to put print a semi-colon between these two variables:
<?php echo $row_rsSubjects['s_subject_id']; ?><?php echo $row_rsSubjects['s_subject_name']; ?>

Question by:dereksheahan
    LVL 142

    Accepted Solution

    <?php echo $row_rsSubjects['s_subject_id']; ?>;<?php echo $row_rsSubjects['s_subject_name']; ?>


    <?php echo $row_rsSubjects['s_subject_id'] . ';' ; ?><?php echo $row_rsSubjects['s_subject_name']; ?>
    LVL 33

    Expert Comment

    <?php echo "{$row_rsSubjects['s_subject_id']}; {$row_rsSubjects['s_subject_name']}"; ?>
    or even
    <?php printf("%s;%s", $row_rsSubjects['s_subject_id'], $row_rsSubjects['s_subject_name']); ?>

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    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 …

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now