echo & Print
Duration: 6 min
This video lesson is available to enrolled students.
Inside: a video lesson and guided study material.
Module outline
- Prelims: General Knowledge: Physics Chemistry Biology History Geography Polity Indian Economy Static General Knowledge GK- Current Affairs Environment
- Prelims: General English: Vocabulary Noun Pronoun Adjectives Preposition Articles Direct and Indirect Speech Tenses Conjunction Subject Verb Agreement (Verb Noun Agreement) Modals Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing) Sentence Correction (Error Correction) Sentence Completion (Fill in the blanks) Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions) Cloze Test (Cloze Passage) Verbal Analogy (Word Based Analogy) Sentence Construction Adverb Verb
- Prelims: Quantitative Aptitude: Percentage Ratio and Proportion (Ratios) HCF LCM Divisibility Rules Average Sequence and Series (Series) Number System Powers and Exponents (Surds and Indices) Algebra Profit and Loss Simple Interest and Compound Interest Time and Work Pipe and Cistern Speed Time and Distance Mixture and Alligation Mensuration and Geometry Age Problems Partnership Statistics Data Interpretation Arithmetic
- Prelims: General Agriculture: Agriculture in India and Tripura Natural Resource Management Fundamentals of Crop Production Horticulture Crop Improvement Crop Protection Social Science
- IT Mains: Operating System: Introduction to OS Process Management CPU Scheduling Process Synchronization Threads & Process Creation Deadlock Memory Management Virtual Memory Disc Scheduling File Management Distributed Systems
- IT Mains: Computer Networking: Introduction to CN DLL: Access Control DLL: Flow Control DLL: Error Control Data Link Layer - Ethernet Net Layer: IPv4 & Proto Net Layer: IP Addressing Net Layer:Routing Protocol Transport Layer Services TL: Congestion & UDP Application Layer Hardware Basics Network Security
- IT Mains: DBMS: Basics of DBMS ER Diagram Relational Model & Functional Dependencies Keys & Integrity Constraints Normalization (1NF - BCNF) Decomposition Properties & 4NF Relational Algebra SQL Relational Calculus Transaction Management Concurrency Control Database Recovery Big Data Systems Database Security & Authorization Enhanced Data Models NoSQL
- IT Mains: Software Engineering: Fundamentals of Software Engineering Software Requirements and Quality Assurance Software Design, Estimation and Metrics Software Testing Software Maintenance and Configuration Management
- IT Mains: Data Structures & Algorithms: Introduction to DS Array Stack Queue Linked List Tree Graphs Hashing Algorithm Analysis Time Complexity Analysis Sorting Algorithms
- IT Mains: OOPS with C++ & Java: C Fundamentals OOPS with C++ Java Fundamentals Array, String, IO & References OOPS with Java Generic & Collections Multithreading File Handling & I/O
- IT Mains: Python: Introduction to Python Tokens, Variables, Data Types, I/O Operators & Expressions Control Flow & Looping Collections & Strings Functions & Modules
- IT Mains: Website Development: Website, Browser & Services Internet Fundamentals Web Design & Development Protocols & Services Web Publishing & Hosting Server Side & Security Emerging Technologies HTML Basics HTML5 CSS JavaScript-Basics .Net Programming PHP
- IT Mains: Mobile App Development: Mobile Computing Multimedia
- IT Mains: Linux / Windows Server Admin: Unix OS Linux OS
AI summary & chapters
AI Summary
An AI-generated summary of this video lecture.
This lecture introduces PHP output statements, focusing on echo and print. The instructor begins by defining the echo statement as a language construct that displays one or more strings without returning a value. A code example in index.php demonstrates echo with multiple arguments and the <br> tag to create line breaks, showing browser output of 'Hello Students!' and 'Welcome to PHP'. The lesson then explores echo's flexibility with multiple arguments, using the example echo "Hello ", "World!"; which outputs 'Hello World!'. A key distinction is highlighted: both echo and print are language constructs, not ordinary functions. The final section defines the print statement, noting it displays a string, returns the value 1, and accepts only one argument. A comparison table contrasts echo and print, emphasizing that echo is more flexible due to its ability to accept multiple arguments while not returning a value.
Chapters
0:00 – 2:00 00:00-02:00
The instructor introduces the PHP Echo statement, explaining that it displays one or more strings and does not return a value. The slide 'PHP Echo / Print' shows the heading '1. Echo Statement' with bullets: 'echo displays one or more strings' and 'It does not return a value.' A code editor demonstrates echo "Hello Students!"; echo "<br>"; echo "Welcome to PHP";, with browser output showing the text on separate lines. The instructor points to specific code lines and highlights the use of <br> for line breaks.
2:00 – 5:00 02:00-05:00
The lesson transitions to echo's multiple argument capability. A slide titled 'Example: Multiple Arguments with Echo' displays the code echo "Hello ", "World!"; with browser output 'Hello World!'. A yellow callout box states: 'Important: Both ... and print are language constructs, not ordinary.' The instructor uses a stylus to point at code panels and handwritten notes like 'Echo 'Hello', 'Hi';'. The segment emphasizes that echo can accept multiple arguments separated by commas, making it more flexible than print for displaying concatenated text.
5:00 – 5:35 05:00-05:35
The final section defines the print statement with bullets: 'print displays a string,' 'It returns the value 1,' and 'It accepts only one argument.' A code example shows print "Hello Students!";. The instructor presents a comparison table titled 'Difference Between Echo and Print,' using a pointer to highlight rows such as 'multiple arguments' and 'Returns 1.' The table contrasts echo's flexibility with print's single-argument limitation, reinforcing that while both display output, they differ in return values and argument handling.
The lecture systematically builds understanding of PHP output statements through definition, demonstration, and comparison. The teaching flow moves from echo's basic functionality to its advanced multiple-argument capability, then contrasts it with print. Key concepts include: echo as a non-returning language construct that accepts multiple arguments, the use of <br> for line breaks, and print's single-argument limitation with a return value of 1. The comparison table serves as the culminating pedagogical tool, consolidating differences in a visual format suitable for exam revision. The instructor's use of real-time code examples and browser output provides concrete evidence of each statement's behavior, while handwritten annotations emphasize critical distinctions between the two constructs.

