» Home » Echo » Page 1
Calling Echo inside a function pre-pends echo string to return value in Powershell
by Naveen in Programming Languages

Hey guys, I'm a Powershell noob and seem to keep getting caught on little weird behaviors like this. Here is some test code:


function EchoReturnTest(){
echo "afdsfadsf"
return "blah"
}
$variable = EchoReturnTest
echo ("var: " + $variable)

Running this script generates this as output: "var: afdsfadsf blah"


Wh


Is it better to echo javascript in raw format with php, or echo a script include that has been minified and gzipped?
by iNate2000 in Javascript

Hey guys quick question, I am currently echoing a lot of javascript that is based conditionally on login status and other variables. I was wondering if it would be better to simply echo the script include like <script type="text/javascript" src="javascript/openlogin.js"></script> that has been run through a minifying program and been gzipped or to echo the full script i


PHP Wordpress loop for 2posts to echo class and third to echo class2
by poofyhairguy in Web Design

Problem.
What I am trying to do is to call a category specific loop, however, I want whats returned to display from most recent first, to be numerically numbered so that for every 2 that is displayed, will echo a css class ascertained to them and the 3rd result to display a completely different class as this is how I have written my html. Here is what I am trying to get the HTML to display


bash echo command -e arguments ignored using echo full path
by Guid in Network & Servers

What's happening here :


$ echo $SHELL
/bin/bash
$ echo -e "foo"
foo
$ which echo
/bin/echo
$ /bin/echo -e "foo"
-e foo

The last output is expected to be "foo", like when using echo directly.


how to get this correctly `echo “echo mukesh >> a.txt” >> b.txt`
by Ohio in Operating Systems

i want text file b.txt to contain echo mukesh >> a.txt


I tried


echo "echo mukesh >> a.txt" >> b.txt

but it puts text the " " as well and the below also doesn't seem to work


echo echo mukesh >> a.txt >> b.txt

In PHP, why wasn't echo implemented as a function? (not echo vs. printf)
by SperglordActual in PHP

I'm just curious. In PHP, why wasn't echo implemented as a function? Why didn't PHP just give us printf and never tell about echo? Please note that:


This is not a question about echo vs. printf.
I already knew that echo is a language construct.

UPDATE: By the way, was printf implemen


creating an echo timestamp / cannot use pipe in echo string
by Jimzz in Network & Servers

I would like to use timestamps for logging outputs in a scriptfile.


On the console


date +%Y%m%d_%H%M%S_%N


prints something like "20120206_104531_944652200"


In order to cut all those nano and mikro seconds I found


date +%Y%m%d_%H%M%S_%N | sed s,".{6}$",,


which gives me something like "20120206_104531_944"


In


echo-ing a custom field input within an echo
by iamwiz82 in Programming Languages

Here's what I'm trying to:


I have a plugin installed into my theme, this plugin outputs a shortcode for placement on a page or post. I don't want this shortcode to be used within the content as determined by a wordpress post, but rather elsewhere on the page.


So I output this: <?php echo do_shortcode('[the_shortcode]'); ?>which would output my shortcod


how can you echo a variable in a echo that already echoing stuff
by plonk420 in Programming Languages

Is there a way to echo a variable that is already echoing something, I try doing it this way but its not echoing it out


if (logged_in() === true) {
echo
'
<li ><a href="#">',$user_data['username'],'</a>
<ul>
<li><a href="http://stackoverflow.com/questions/social.php">socail</a></li&

echo out div 1 if user favourites is 13 or less else echo out div 2?
by danil in Programming Languages

im trying to find a way of displaying a div which says "add this user to your favourites" but i only want this to display if a user has less than 13 favourites. so as soon as they have 13 favourites div1 will hide and div 2 will show.


i am currently echoing out my div on a different page to where the user favourites are echoed :


<?php
$account_type = account_t

Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .