Re:预先分析一个PHP页面? [英] Re: Pre-Analyze a PHP page?

查看:47
本文介绍了Re:预先分析一个PHP页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Mo写道:

Mo wrote:


我是新手寻找建议。


我现在有一份报告按照我的要求工作,但是我需要添加一些计算总数的



问题是我需要把上面的详细信息加在上面(之前)

细节本身。


有没有办法预先分析页面或其他东西,以便我可以使用

之前的总和获得总和的零件?
I''m a novice looking for suggestions.

I have a report which is now working how I want it, but I need to add
some calculated totals.
The problem is that I need to put the sum of detail above (prior to)
the detail itself.

Is there a way to pre-analyze the page or something so that I can use
the sum prior to the getting the parts that make the sum?



而不是echo()所有内容,将其存储在字符串变量中。然后,总结

你需要什么,然后echo()总和,然后echo()持有

(延迟)输出的字符串。


干杯,

-

------------------------ ----------

Iv ?? n S ?? nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-


双城记LITE(tm)

- 查尔斯·狄更斯


一个男人爱上了一个女孩谁爱另一个男人看起来只是/>
像他一样在法国因为一个卑鄙的b $ b b女士而被砍掉了。


犯罪和惩罚LITE(tm)

- 由Fyodor Dostoevski提供


一名男子向典当商发送一封令人讨厌的信,但后来

感到内疚和道歉。


奥德赛LITE(tm)

- 由荷马提供


工作到很晚之后,勇敢的战士得到了在回家的路上迷路了。

Instead of echo()ing everything, store it in a string variable. Then, sum
what you need to, then echo() the sum, then echo() the string holding the
(delayed) output.

Cheers,
--
----------------------------------
Iv??n S??nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

A Tale of Two Cities LITE(tm)
-- by Charles Dickens

A man in love with a girl who loves another man who looks just
like him has his head chopped off in France because of a mean
lady who knits.

Crime and Punishment LITE(tm)
-- by Fyodor Dostoevski

A man sends a nasty letter to a pawnbroker, but later
feels guilty and apologizes.

The Odyssey LITE(tm)
-- by Homer

After working late, a valiant warrior gets lost on his way home.

推荐答案

6月11日,12:11 * pm,IvánSánchezOrtega < ivansanchez -... @ rroba-

escomposlinux .-。punto .-。orgwrote:
On Jun 11, 12:11*pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.orgwrote:

Mo写道:
Mo wrote:

我是新手寻找建议。
I''m a novice looking for suggestions.


我有一份报告现在正在按照我的要求工作,但我需要添加

一些计算总计。

问题是我需要在细节本身之上(之前)

上面加上细节的总和。
I have a report which is now working how I want it, but I need to add
some calculated totals.
The problem is that I need to put the sum of detail above (prior to)
the detail itself.


有没有办法预先分析页面或其他东西,以便我可以使用

之前的总和获得总和的零件?
Is there a way to pre-analyze the page or something so that I can use
the sum prior to the getting the parts that make the sum?



而不是echo()所有内容,将其存储在字符串变量中。然后,总结

你需要什么,然后echo()总和,然后echo()持有

(延迟)输出的字符串。


干杯,

-

------------------------ ----------
$ b $bIvánSánchezOrtega-ivansanchez-algarroba-escomposlinux-punto-org-

双城记LITE (tm)

* * * * - 查尔斯·狄更斯


* * * *一个男人爱上了一个爱另一个男人的男人

* * * *像他一样在法国被砍掉了因为一个卑鄙的

* * * *编织的女士。


犯罪和处罚LITE(tm)

* * * * - 由Fyodor Dostoevski提供


* * * *一名男子发送一封令人讨厌的信件给一个典当商,但后来

* * * *感到内疚和道歉。


奥德赛LITE(tm)

* * * * - 由荷马提供


* * * *工作到很晚之后,一位勇敢的战士迷失在他的旅途中。


Instead of echo()ing everything, store it in a string variable. Then, sum
what you need to, then echo() the sum, then echo() the string holding the
(delayed) output.

Cheers,
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

A Tale of Two Cities LITE(tm)
* * * * -- by Charles Dickens

* * * * A man in love with a girl who loves another man who looks just
* * * * like him has his head chopped off in France because of a mean
* * * * lady who knits.

Crime and Punishment LITE(tm)
* * * * -- by Fyodor Dostoevski

* * * * A man sends a nasty letter to a pawnbroker, but later
* * * * feels guilty and apologizes.

The Odyssey LITE(tm)
* * * * -- by Homer

* * * * After working late, a valiant warrior gets lost on his wayhome.



我不认为我可以将它存储到变量中以延迟输出

因为它必须在WHILE循环中正确地说明它。

如果我错了,请纠正我。

我希望能够这样做(我尝试过类似的东西,

但是无法让它工作。


~Mo

I don''t think I can just store it into a variable for delayed output
because it has to be in the WHILE loop for it to itterate correctly.
If I''m wrong on this, PLEASE correct me.
I''d love to be able to do it this way (i tried something like this,
but couldn''t get it to work).

~Mo


Mo写道:
Mo wrote:

我不认为我可以将它存储到变量中以延迟输出

因为它有要在WHILE循环中正确地进行迭代。

如果我错了,请纠正我。
I don''t think I can just store it into a variable for delayed output
because it has to be in the WHILE loop for it to itterate correctly.
If I''m wrong on this, PLEASE correct me.



你错了。


应该是这样的:


<?php

You''re wrong.

It should work like this:

<?php


output ='''';


while(
output='''';

while(


这篇关于Re:预先分析一个PHP页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆