chevron_left

Recent posts tagged echo

0 0 1 min.
CentOS 7 is a commercial free version from RedHat community.In this article we will focus on Linux majorly and other commands.Using the CAT commandCAT is used to concatenate files and print on the standard outputsyntax : cat option filename.txtoption...
posted Aug 16 joshua134 105 points
0 0 0 min.
In this article, we’ll discuss Identify the comment clause to include along with in php code.Here is a example :<?php // Author : https://www.codedweb.org/ // This is a single-line comment # This is also a single-line comment in unix an...
posted Aug 4 IvanLomakin 216 points
0 2 1 min.
Today we will learn how to redirect to another page in php after submit. It is basic requirements of any website that was made in PHP or other languages. Now we will see how to redirect the user to a different page called (Thank_you.php) after t...
posted May 18, 2020 Tushar Shuvro 576 points
0 0 1 min.
In this article, we will learn the difference between the echo and print_r in php.Echo:The echo is not a function, it is described as a language construct. It accepts the list of arguments and returns the number of values or return void. The echo can...
posted May 17, 2020 Farkhanda Athar 0 points
0 0 1 min.
Solution:STEP 1: Using empty() function Syntax:bool empty( $var )<?php // Declare an array and initialize it $non_empty_array = array('URL' => 'https://www.geeksforgeeks.org/'); // Declare an empty array $empty_array = array(); // ...
posted May 16, 2020 Tushar Shuvro 576 points
0 0 1 min.
Solution 1: Using substr and mb_substr commandssubstr($string, 0, -1); mb_substr($string, 0, -1);$string = "This is test string.."; echo $string . "\n"; // substr function echo "substr: " . substr($string, 0, -1); echo "\n"; // mb_substr multibyte...
posted May 16, 2020 Tushar Shuvro 576 points
0 0 2 min.
Solution:STEP 1: DatabaseCode:CREATE TABLE `test` ( `id` int(11) NOT NULL, `name` varchar(20) NOT NULL, `lastname` varchar(20) NOT NULL, `email` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; STEP 2: Update.phpCode:<?php...
posted May 14, 2020 Tushar Shuvro 576 points
0 0 1 min.
The error occurs when the user tries to print the array values by using the echo statement. The echo statement is used to print the strings or scalar values. When the user tries to print the array values by using the echo-like;$array = array ( 5, 7 ,...
posted May 7, 2020 Farkhanda Athar 0 points
To see more, click for the full list of questions or popular tags.