100+ results results for 'hello world php' (607 ms)
1<?php 2defined( 'SYSPATH' ) OR die( 'No direct access allowed.' ); 92 { 93 die('Hello world'); 94 //die(Kohana::debug($_POST));ConsoleInputDefinitionTest.php https://github.com/Proudio-Interactive/phpUnderControl.git | PHP | 316 lines
104 $definition->addCommand( 105 'mapi0', 'Hello World.', phpucConsoleInputDefinition::MODE_HIDDEN 106 ); 107 $definition->addCommand( 108 'mapi1', 'Hello World.', phpucConsoleInputDefinition::MODE_NORMAL 109 ); 170 $definition->addCommand( 'manuel', 'Hello World.' ); 171 $definition->addArgument( 'manuel', 'pichler', 'Hello World.', null ); 172 } 240 $definition->addCommand( 'manuel', 'Hello World.' ); 241 $definition->addOption( 'manuel', 'p1', 'pichler', 'Hello World 1.' ); 242 $definition->addOption( 'manuel', 'p2', 'pichler', 'Hello World 2.' ); 308 $definition->addOption( 309 'manuel', 'p1', 'pichler1', 'Hello World.', null, null, false, 310 phpucConsoleInputDefinition::MODE_HIDDENHttpResponseTest.class.php https://github.com/Gamepay/xp-framework.git | PHP | 373 lines
1<?php 2/* This class is part of the XP framework 351 public function headerStringDoesNotIncludeContent() { 352 $response= $this->newResponse(array('HTTP/1.1 200 OK', 'Content-Type: application/json', 'Content-Length: 21'), '{ "hello" : "world" }'); 353 $this->assertEquals(RepeatButton.js https://github.com/flomotlik/grails-qooxdoo.git | JavaScript | 460 lines
11 LGPL: http://www.gnu.org/licenses/lgpl.html 12 EPL: http://www.eclipse.org/org/documents/epl-v10.php 13 See the LICENSE file in the project's top-level directory for details. 32 * <pre class='javascript'> 33 * var button = new qx.ui.form.RepeatButton("Hello World"); 34 * 41 * 42 * This example creates a button with the label "Hello World" and attaches an 43 * event listener to the {@link #execute} event.LifecycleCallbackTest.php https://bitbucket.org/zbahij/eprojets_app.git | PHP | 311 lines
1<?php 2 5 6require_once __DIR__ . '/../../TestInit.php'; 7 25 $entity = new LifecycleCallbackTestEntity; 26 $entity->value = 'hello'; 27 $this->_em->persist($entity); 38 39 $result[0]->value = 'hello again'; 40 84 $this->assertEquals('Alice', $user2->getName()); 85 $this->assertEquals('Hello World', $user2->getValue()); 86 } 200 /** @PreUpdate */ 201 public function testCallback() {$this->value = 'Hello World';} 202}mysql4-upgrade-0.6.2-0.7.0.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 48 lines
1<?php 2/** 8 * that is bundled with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@magentocommerce.com so we can send you a copy immediately. 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 33 34UPDATE {$this->getTable('core_email_template')} set template_text='<style type=\"text/css\">\r\nbody,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }\r\n</style>\r\n\r\n<div style=\"font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;\">\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"98%\" style=\"margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;\"\">\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <!-- [ header starts here] -->\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"650\">\r\n <tr>\r\n <td valign=\"top\">\r\n <a href=\"{{store url=\"\"}}\"><img src=\"{{skin url=\"images/logo_email.gif\"}}\" alt=\"Magento\" style=\"margin-bottom:10px;\" border=\"0\"/></a></td>\r\n </tr>\r\n </table>\r\n\r\n <!-- [ middle starts here] -->\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"650\">\r\n <tr>\r\n <td valign=\"top\">\r\n <p><strong>Hello {{var billing.name}}</strong>,<br/>\r\n Thank you for your order from Magento Demo Store. Once your package ships we will send an email with a link to track your order. You can check the status of your order by <a href=\"{{store url=\"customer/account/\"}}\" style=\"color:#1E7EC8;\">logging into your account</a>. If you have any questions about your order please contact us at <a href=\"mailto:dummyemail@magentocommerce.com\" style=\"color:#1E7EC8;\">dummyemail@magentocommerce.com</a> or call us at <span class=\"nobr\">(555) 555-0123</span> Monday - Friday, 8am - 5pm PST.</p>\r\n <p>Your order confirmation is below. Thank you again for your business.</p>\r\n \r\n <h3 style=\"border-bottom:2px solid #eee; font-size:1.05em; padding-bottom:1px; \">Your Order #{{var order.increment_id}} <small>(placed on {{var order.getCreatedAtFormated(\'long\')}})</small></h3>\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\r\n <thead>\r\n <tr>\r\n <th align=\"left\" width=\"48.5%\" bgcolor=\"#d9e5ee\" style=\"padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;\">Billing \r\n Information:</th>\r\n <th width=\"3%\"></th>\r\n <th align=\"left\" width=\"48.5%\" bgcolor=\"#d9e5ee\" style=\"padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;\">Payment \r\n Method:</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\" style=\"padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;\">{{var order.billing_address.getFormated(\'html\')}}</td>\r\n <td> </td>\r\n <td valign=\"top\" style=\"padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;\"> {{var payment_html}}</td>\r\n </tr>\r\n </tbody>\r\n </table><br/>\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\r\n <thead>\r\n <tr>\r\n <th align=\"left\" width=\"48.5%\" bgcolor=\"#d9e5ee\" style=\"padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;\">Shipping \r\n Information:</th>\r\n <th width=\"3%\"></th>\r\n <th align=\"left\" width=\"48.5%\" bgcolor=\"#d9e5ee\" style=\"padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;\">Shipping \r\n Method:</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\" style=\"padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;\">{{var order.shipping_address.getFormated(\'html\')}}</td>\r\n <td> </td>\r\n <td valign=\"top\" style=\"padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;\">{{var order.shipping_description}}</td>\r\n </tr>\r\n </tbody>\r\n </table><br/>\r\n\r\n{{var items_html}}<br/>\r\n {{var order.getEmailCustomerNote()}} \r\n <p>Thank you again,<br/><strong>Magento Demo Store</strong></p>\r\n\r\n\r\n </td>\r\n </tr>\r\n </table>\r\n \r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n' WHERE template_code='New order (HTML)'; 35UPDATE {$this->getTable('core_email_template')} set template_text='<style type=\"text/css\">body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }</style>\r\n<div style=\"font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;\">\r\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"98%\" style=\"margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;\"\">\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <!-- [ header starts here] -->\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"650\">\r\n <tr>\r\n <td valign=\"top\">\r\n <a href=\"{{store url=\"\"}}\"><img src=\"{{skin url=\"images/logo_email.gif\"}}\" alt=\"Magento\" style=\"margin-bottom:10px;\" border=\"0\"/></a></td>\r\n </tr>\r\n </table>\r\n\r\n <!-- [ middle starts here] -->\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"650\">\r\n <tr>\r\n <td valign=\"top\">\r\n <p><strong>Dear {{var billing.name}}</strong>,<br/>\r\n Your order # {{var order.increment_id}} has been <strong>{{var order.getStatusLabel()}}</strong>.</p>\r\n <p>{{var comment}}</p>\r\n <p>If you have any questions, please feel free to contact us at \r\n <a href=\"mailto:magento@varien.com\" style=\"color:#1E7EC8;\">dummyemail@magentocommerce.com</a> or by phone at (555) 555-0123.</p>\r\n <p>Thank you again,<br/><strong>Magento Demo Store</strong></p>\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n' WHERE template_code='Order update (HTML)';quickstart.php https://github.com/mtiwari/sna-page.git | PHP | 232 lines
1<?php require "includes/project_info.php" ?> 2<?php require "../includes/header.php" ?> 2<?php require "../includes/header.php" ?> 3<?php include "../includes/advert.php" ?> 4 42<b>> bin/kafka-producer-shell.sh --server kafka://localhost:9092 --topic test</b> 43> hello 44sent: hello (14 bytes) 44sent: hello (14 bytes) 45> world 46sent: world (14 bytes) 56... 57consumed: hello 58consumed: world 230 231<?php require "../includes/footer.php" ?> 232UriTemplateTest.php https://gitlab.com/lbsastry/idn-api-php | PHP | 296 lines
25 $var = "value"; 26 $hello = "Hello World!"; 27 34 "Hello%20World%21", 35 $urit->parse("{hello}", array("hello" => $hello)) 36 ); 41 $var = "value"; 42 $hello = "Hello World!"; 43 $path = "/foo/bar"; 92 "1024,Hello%20World!,768", 93 $urit->parse("{+x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) 94 ); 231 $var = "value"; 232 $hello = "Hello World!"; 233 $urit = new Google_Utils_UriTemplate();OfflineTest.php https://github.com/ajgarlag/zf1.git | PHP | 358 lines
1<?php 2/** 8 * with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://framework.zend.com/license/new-bsd 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@zend.com so we can send you a copy immediately. 21 22require_once 'Zend/Service/Rackspace/Files.php'; 23require_once 'Zend/Http/Client/Adapter/Test.php'; 37class Zend_Service_Rackspace_Files_OfflineTest 38 extends PHPUnit_Framework_TestCase 39{ 110 $this->metadata2 = array( 111 'hello' => 'world' 112 );statement_list.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 436 lines
10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 28#include "hphp/compiler/statement/block_statement.h" 29#include "hphp/parser/hphp.tab.hpp" 30#include "hphp/compiler/expression/binary_op_expression.h" 178 // turn into (for constant folding and concat sequence) 179 // $a .= " " . "hello " . $space . "world!"; 180 unsigned int i = 0; 424 break; 425 case CodeGenerator::PhpImplementation: 426 if (!stmt->is(Statement::KindOfFunctionStatement) &&AnnotationParsingTest.class.php https://github.com/treuter/xp-framework.git | PHP | 556 lines
61 $this->assertEquals( 62 array(0 => array('hello' => 'World=Welt'), 1 => array()), 63 $this->parse("#[@hello('World=Welt')]") 74 array(0 => array('hello' => '@World'), 1 => array()), 75 $this->parse("#[@hello('@World')]") 76 ); 85 $this->assertEquals( 86 array(0 => array('hello' => '@hello("World")'), 1 => array()), 87 $this->parse("#[@hello('@hello(\"World\")')]") 122 array(0 => array('hello' => 'World'), 1 => array()), 123 $this->parse('#[@hello("World")]') 124 ); 181 array(0 => array('hello' => '@hello(\'World\')'), 1 => array()), 182 $this->parse('#[@hello("@hello(\'World\')")]') 183 );Worker.php https://github.com/rrehbeindoi/net_gearman.git | PHP | 499 lines
1<?php 2/** 8 * available through the world-wide-web at the following URI: 9 * http://www.opensource.org/licenses/bsd-license.php. If you did not receive 10 * a copy of the New BSD License and are unable to obtain it through the web, 10 * a copy of the New BSD License and are unable to obtain it through the web, 11 * please send a note to license@php.net so we can mail you a copy immediately. 12 * 16 * @copyright 2007-2008 Digg.com, Inc. 17 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 18 * @version CVS: $Id$ 36 * 37 * $abilities = array('HelloWorld', 'Foo', 'Bar'); 38 * 41 * foreach ($abilities as $ability) { 42 * $worker->addAbility('HelloWorld'); 43 * }Client.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 287 lines
1<?php 2/** 8 * with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://framework.zend.com/license/new-bsd 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@zend.com so we can send you a copy immediately. 24/** Zend_Service_Abstract */ 25#require_once 'Zend/Service/Abstract.php'; 26 27/** Zend_Rest_Client_Result */ 28#require_once 'Zend/Rest/Client/Result.php'; 29 30/** Zend_Uri */ 31#require_once 'Zend/Uri.php'; 32FileListingTest.php https://gitlab.com/andecode/theme-spark | PHP | 240 lines
1<?php 2 184 $file->setPermanent(); 185 file_put_contents($file->getFileUri(), 'hello world'); 186 $file->save(); 231 $file->setPermanent(); 232 file_put_contents($file->getFileUri(), 'hello world'); 233Client.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 287 lines
1<?php 2/** 8 * with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://framework.zend.com/license/new-bsd 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@zend.com so we can send you a copy immediately. 24/** Zend_Service_Abstract */ 25require_once 'Zend/Service/Abstract.php'; 26 27/** Zend_Rest_Client_Result */ 28require_once 'Zend/Rest/Client/Result.php'; 29 30/** Zend_Uri */ 31require_once 'Zend/Uri.php'; 32PahoExampleActivity.java https://gitlab.com/jettijam/pubsub_project | Java | 219 lines
10 * and the Eclipse Distribution License is available at 11 * http://www.eclipse.org/org/documents/edl-v10.php. 12 * 50 final String publishTopic = "exampleAndroidPublishTopic"; 51 final String publishMessage = "Hello World!"; 52restxmlTest.php https://github.com/leoken/plivohelper-php.git | PHP | 385 lines
12sudo pear upgrade-all 13sudo pear install --alldeps phpunit/PHPUnit 14 15On Debian 16pear uninstall phpunit/PHPUnit 17pear channel-discover components.ez.no 332 $g = $r->append(new GetDigits(array("action"=>"example.com", "method"=>"GET"))); 333 $g->append(new Speak("Hello World")); 334 $g->append(new Play("helloworld.mp3")); 350 $g->addSpeak("Hello World"); 351 $g->addPlay("helloworld.mp3"); 352 $g->addWait(); 356 <Speak>Hello World</Speak> 357 <Play>helloworld.mp3</Play> 358 <Wait></Wait>TextHelper.php https://github.com/mrwabu/urlcatcher.git | PHP | 276 lines
1<?php 2 18 * @author David Heinemeier Hansson 19 * @version SVN: $Id: TextHelper.php 20142 2009-07-13 10:20:44Z FabianLange $ 20 */ 100 * by +radius+. If the phrase isn't found, nil is returned. Ex: 101 * excerpt("hello my world", "my", 3) => "...lo my wo..." 102 * If +excerpt_space+ is true the text will only be truncated on whitespace, never inbetween words. 103 * This might return a smaller radius than specified. 104 * excerpt("hello my world", "my", 3, "...", true) => "... my ..." 105 */ 179 * Example: 180 * auto_link("Go to http://www.symfony-project.com and say hello to fabien.potencier@example.com") => 181 * Go to <a href="http://www.symfony-project.com">http://www.symfony-project.com</a> and 181 * Go to <a href="http://www.symfony-project.com">http://www.symfony-project.com</a> and 182 * say hello to <a href="mailto:fabien.potencier@example.com">fabien.potencier@example.com</a> 183 */SimpeTemplateTest.php https://gitlab.com/php.bjoernbartels.earth/simpletemplate | PHP | 275 lines
1<?php 2/** 13 14use PHPUnit_Framework_TestCase as TestCase; 15 206 207 $template = "... {MY-VAR} <?php echo 'hello world'; ?> <!-- BEGIN:BLOCK --> {MY-DYN-VAR} <!-- END:BLOCK -->..."; 208 $generatedContent = $tpl->generate($template, true); 211 $this->assertContains("value-2", $generatedContent); 212 $this->assertContains("<?php echo 'hello world'; ?>", $generatedContent); 213 } 223 224 $template = "... {MY-VAR} ... i18n('hello world') ... <!-- BEGIN:BLOCK --> {MY-DYN-VAR} <!-- END:BLOCK --> translate('good bye world') ..."; 225 $generatedContent = $tpl->generate($template, true); 228 $this->assertContains("value-2", $generatedContent); 229 $this->assertContains("hello world", $generatedContent); 230 $this->assertContains("good bye world", $generatedContent);introduction.rst https://github.com/tyx/symfony-docs.git | ReStructuredText | 210 lines
31 32.. code-block:: php 33 71* :class:`Symfony\\Component\\Translation\\Loader\\ArrayLoader` - to load 72 catalogs from PHP arrays. 73* :class:`Symfony\\Component\\Translation\\Loader\\CsvFileLoader` - to load 82 catalogs form gettext files. 83* :class:`Symfony\\Component\\Translation\\Loader\\PhpFileLoader` - to load 84 catalogs from PHP files. 116 $translator->addResource('array', array( 117 'Hello World!' => 'Bonjour', 118 ), 'fr_FR');commontypes.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 634 lines
28{ 29 return "Hello World"; 30} 139 { 140 return "Hello World"; 141 } 284 */ 285 public $string = "Hello World"; 286 447 { 448 return "Hello World"; 449 } 551 { 552 return "Hello World"; 553 }ParameterBagTest.php https://github.com/jordscream/symfony.git | PHP | 210 lines
1<?php 2 13 14use PHPUnit\Framework\TestCase; 15use Symfony\Component\HttpFoundation\Exception\BadRequestException; 180 { 181 $parameters = ['foo' => 'bar', 'hello' => 'world']; 182 $bag = new ParameterBag($parameters); 194 { 195 $parameters = ['foo' => 'bar', 'hello' => 'world']; 196 $bag = new ParameterBag($parameters);ConsoleTest.php https://bitbucket.org/fsilva/slick-framework.git | PHP | 332 lines
1<?php 2 5 * 6 * PHP version 5 7 * 138 { 139 $txt = Colors::replace('Hello world!', 'Hello', 'red'); 140 $color = Colors::set('Hello', 'red'); 140 $color = Colors::set('Hello', 'red'); 141 $this->assertEquals($color.' world!', $txt); 142 } 151 $this->_console->setColors(false); 152 $txt = "Hello world, this is a very long string and therefore should be printed in two or " . 153 "more separate lines. This usefull to ouput text without worring if it will fit the " .cairocontext.setfontface.html https://bitbucket.org/stillzhl/manuals.git | HTML | 131 lines
11 <div class="up"><a href="class.cairocontext.html">CairoContext</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="cairocontext.setfontface" class="refentry"> 92<div class="phpcode"><code><span style="color: #000000"> 93<span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">// New surface with white background<br /></span><span style="color: #0000BB">$s </span><span style="color: #007700">= new </span><span style="color: #0000BB">CairoImageSurface</span><span style="color: #007700">(</span><span style="color: #0000BB">CairoFormat</span><span style="color: #007700">::</span><span style="color: #0000BB">ARGB32</span><span style="color: #007700">, </span><span style="color: #0000BB">300</span><span style="color: #007700">, </span><span style="color: #0000BB">100</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$c </span><span style="color: #007700">= new </span><span style="color: #0000BB">CairoContext</span><span style="color: #007700">(</span><span style="color: #0000BB">$s</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$c</span><span style="color: #007700">-></span><span style="color: #0000BB">setSourceRgb</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$c</span><span style="color: #007700">-></span><span style="color: #0000BB">paint</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">// Draw some text<br /></span><span style="color: #0000BB">$c</span><span style="color: #007700">-></span><span style="color: #0000BB">setSourceRgb</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$c</span><span style="color: #007700">-></span><span style="color: #0000BB">moveTo</span><span style="color: #007700">(</span><span style="color: #0000BB">10</span><span style="color: #007700">, </span><span style="color: #0000BB">60</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">// Create a new font face<br /></span><span style="color: #0000BB">$f </span><span style="color: #007700">= new </span><span style="color: #0000BB">CairoToyFontFace</span><span style="color: #007700">(</span><span style="color: #DD0000">"sans-serif"</span><span style="color: #007700">, </span><span style="color: #0000BB">CairoFontSlant</span><span style="color: #007700">::</span><span style="color: #0000BB">NORMAL</span><span style="color: #007700">, </span><span style="color: #0000BB">CairoFontWeight</span><span style="color: #007700">::</span><span style="color: #0000BB">NORMAL</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$c</span><span style="color: #007700">-></span><span style="color: #0000BB">setFontFace</span><span style="color: #007700">(</span><span style="color: #0000BB">$f</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$c</span><span style="color: #007700">-></span><span style="color: #0000BB">setFontSize</span><span style="color: #007700">(</span><span style="color: #0000BB">30</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$c</span><span style="color: #007700">-></span><span style="color: #0000BB">showText</span><span style="color: #007700">(</span><span style="color: #DD0000">'Hello, World!'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$s</span><span style="color: #007700">-></span><span style="color: #0000BB">writeToPng</span><span style="color: #007700">(</span><span style="color: #0000BB">dirname</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">) . </span><span style="color: #DD0000">'/setFontFace.png'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span> 94</span> 103 <div class="example-contents"> 104<div class="phpcode"><code><span style="color: #000000"> 105<span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">/* ... */<br /></span><span style="color: #0000BB">?></span> 129 <div class="up"><a href="class.cairocontext.html">CairoContext</a></div> 130 <div class="home"><a href="index.html">PHP Manual</a></div> 131</div></body></html>Utils.php https://gitlab.com/reasonat/test8 | PHP | 291 lines
1<?php 2 34 * @copyright Copyright (c) 2009-2013 Nicholas J Humfrey 35 * @license http://www.opensource.org/licenses/bsd-license.php 36 */ 43 * @copyright Copyright (c) 2009-2013 Nicholas J Humfrey 44 * @license http://www.opensource.org/licenses/bsd-license.php 45 */ 53 * For example: 54 * 'hello world' becomes HelloWorld 55 * 'rss-tag-soup' becomes RssTagSoup 174 if (is_object($literal)) { 175 $literal = $literal->toRdfPhp(); 176 } elseif (!is_array($literal)) {recursive.py https://github.com/jcrobak/hue.git | Python | 401 lines
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) 2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 3""" 110 def app(environ, start_response): 111 if environ['PATH_INFO'] == '/hello': 112 start_response("200 OK", [('Content-type', 'text/plain')]) 112 start_response("200 OK", [('Content-type', 'text/plain')]) 113 return ['Hello World!'] 114 elif environ['PATH_INFO'] == '/error': 123 If you ran this application and visited ``/hello`` you would get a 124 ``Hello World!`` message. If you ran the application and visited 125 ``/not_found`` a ``ForwardRequestException`` would be raised and the caught 155 start_response("200 OK", [('Content-type', 'text/plain')]) 156 return ['Hello World!'] 157 elif environ['PATH_INFO'] == '/error':rating_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 241 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 17/** 18 * Unit tests for rating/lib.php 19 * 20 * @package core_ratings 21 * @category phpunit 22 * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com} 29global $CFG; 30require_once($CFG->dirroot . '/rating/lib.php'); 31 33/** 34 * Unit test case for all the rating/lib.php requiring DB mockup & manipulation 35 */ 76 $user1posts = array( 77 (object)array('id' => 1, 'userid' => 1, 'message' => 'hello')); 78 // a post (item) by user 2 (rated above by user 1 and 3 with average = 3)function.rtrim.html https://bitbucket.org/thncr/manuals.git | HTML | 195 lines
11 <div class="up"><a href="ref.strings.html">字符串函数</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="function.rtrim" class="refentry"> 15 <h1 class="refname">rtrim</h1> 16 <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">rtrim</span> — <span class="dc-title">删除字符串末端的空白字符(或者其他字符)</span></p> 17 154<div class="phpcode"><code><span style="color: #000000"> 155<span style="color: #0000BB"><?php<br /><br />$text </span><span style="color: #007700">= </span><span style="color: #DD0000">"\t\tThese are a few words :) ... "</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$binary </span><span style="color: #007700">= </span><span style="color: #DD0000">"\x09Example string\x0A"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$hello </span><span style="color: #007700">= </span><span style="color: #DD0000">"Hello World"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$text</span><span style="color: #007700">, </span><span style="color: #0000BB">$binary</span><span style="color: #007700">, </span><span style="color: #0000BB">$hello</span><span style="color: #007700">);<br /><br />print </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$trimmed </span><span style="color: #007700">= </span><span style="color: #0000BB">rtrim</span><span style="color: #007700">(</span><span style="color: #0000BB">$text</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$trimmed</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$trimmed </span><span style="color: #007700">= </span><span style="color: #0000BB">rtrim</span><span style="color: #007700">(</span><span style="color: #0000BB">$text</span><span style="color: #007700">, </span><span style="color: #DD0000">" \t."</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$trimmed</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$trimmed </span><span style="color: #007700">= </span><span style="color: #0000BB">rtrim</span><span style="color: #007700">(</span><span style="color: #0000BB">$hello</span><span style="color: #007700">, </span><span style="color: #DD0000">"Hdle"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$trimmed</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// 删除 $binary 末端的 ASCII 码控制字符<br />// (包括 0 - 31)<br /></span><span style="color: #0000BB">$clean </span><span style="color: #007700">= </span><span style="color: #0000BB">rtrim</span><span style="color: #007700">(</span><span style="color: #0000BB">$binary</span><span style="color: #007700">, </span><span style="color: #DD0000">"\x00..\x1F"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$clean</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?></span> 156</span> 165" 166string(11) "Hello World" 167 169string(26) " These are a few words :)" 170string(9) "Hello Wor" 171string(15) " Example string"active_record.php https://bitbucket.org/gio_jgs/botica.git | PHP | 291 lines
1<?php 2/** 2/** 3 * Kumbia PHP Framework 4 * 8 * with this package in the file docs/LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://www.kumbia.org/license.txt 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to kumbia@kumbia.org so we can send you a copy immediately. 15 * Este archivo debe ser incluido desde un controlador 16 * usando include "test/active_record.php" 17 * 140 } 141 $model->update_all("email = 'hello@com'"); 142 $model->update_all("texto = 'otro texto'", "id <= 10");docs.md https://github.com/conzi/lessphp.git | Markdown | 502 lines
35include file into your code base and running the appropriate compile method as 36described in the [PHP Interface](#php-interface). 37 97 width: 2 * @width / 3; 98 font-family: "hel" + "vetica"; // evaluates to "helloworld" 99 } 334When importing, the `importDir` is searched for files. This can be configured, 335see [PHP Interface](#php-interface). 336 385 386The PHP interface lets you control the compiler from your PHP scripts. There is 387only one file to include to get access to everything: 481 482**lessphp** comes with a command line script written in PHP that can be used to 483invoke the compiler from the terminal. On Linux an OSX, all you need to do isStubTest.php https://gitlab.com/panace/public | PHP | 447 lines
42 $dummy = Stub::makeEmptyExcept('DummyClass', 'helloWorld'); 43 $this->assertEquals($this->dummy->helloWorld(), $dummy->helloWorld()); 44 $this->assertNull($dummy->goodByeWorld()); 70 })); 71 $this->assertEquals($this->dummy->helloWorld(), $dummy->helloWorld()); 72 $this->assertEquals("hello world", $dummy->goodByeWorld()); 90 { 91 $dummy = Stub::make('DummyClass', array('helloWorld' => 'good bye world')); 92 $this->assertMethodReplaced($dummy); 132 { 133 $dummy = Stub::make('DummyClass', array('helloWorld' => 'good bye world')); 134 $this->assertMethodReplaced($dummy); 207 $this->assertTrue(method_exists($dummy, 'helloWorld')); 208 $this->assertNotEquals($this->dummy->helloWorld(), $dummy->helloWorld()); 209 $this->assertEquals($dummy->helloWorld(), 'good bye world');update.php https://gitlab.com/Haithamgit/Project | PHP | 364 lines
1<?php 2 58 // Bail if not in admin/plugins 59 if ( ! ( is_admin() && ( 'plugins.php' === $pagenow ) ) ) { 60 return false; 107 // Bail if not in admin/plugins 108 if ( ! ( is_admin() && ( 'plugins.php' === $pagenow ) ) ) { 109 return false; 187 'forum_content' => __( 'General chit-chat', 'bbpress' ), 188 'topic_title' => __( 'Hello World!', 'bbpress' ), 189 'topic_content' => __( 'I am the first topic in your new forums.', 'bbpress' ), 189 'topic_content' => __( 'I am the first topic in your new forums.', 'bbpress' ), 190 'reply_title' => __( 'Re: Hello World!', 'bbpress' ), 191 'reply_content' => __( 'Oh, and this is what a reply looks like.', 'bbpress' ),BanchaApiTest.php git://github.com/Bancha/Bancha.git | PHP | 291 lines
1<?php 2/** 2/** 3 * Bancha : Seamlessly integrates CakePHP with Ext JS and Sencha Touch (http://bancha.io) 4 * Copyright 2011-2014 codeQ e.U. 256 // test app controller 257 $this->assertContains('HelloWorld', array_keys($remotableMethods)); 258 $this->assertCount(2, $remotableMethods['HelloWorld']); 258 $this->assertCount(2, $remotableMethods['HelloWorld']); 259 $this->assertEquals('hello', $remotableMethods['HelloWorld'][0]['name']); 260 $this->assertEquals(0, $remotableMethods['HelloWorld'][0]['len']); 260 $this->assertEquals(0, $remotableMethods['HelloWorld'][0]['len']); 261 $this->assertEquals('helloyou', $remotableMethods['HelloWorld'][1]['name']); 262 $this->assertEquals(2, $remotableMethods['HelloWorld'][1]['len']); 267 $this->assertEquals('exposedTestMethod', $remotableMethods['TestPlugin.PluginTest'][0]['name']); 268 $this->assertEquals(0, $remotableMethods['HelloWorld'][0]['len']); 269 }Module.php https://bitbucket.org/webbear/processwire-base-installation.git | PHP | 247 lines
1<?php 2 79 * 'autoload' => false, 80 * 'requires' => array('HelloWorld', 'LazyCron'), 81 * 'installs' => array('Module1', 'Module2', 'Module3'), 143 * ProcessWire may sometimes substitute placeholders for a module that need to respond with the 144 * non-placeholder classname. PHP's get_class won't work, which is why this method is used instead. 145 * This method is only required for PW internal classes. As a result, implementation is optional for others.request.php https://github.com/mzkrelx/milm-search-ui-php.git | PHP | 575 lines
1<?php 2/** 9 * @copyright 2010 - 2012 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 51 * 52 * Request::forge('hello/world'); 53 * 269 // check if the module has routes 270 if (is_file($module_path .= 'config/routes.php')) 271 { 320 * 321 * $request = Request::forge('hello/world')->execute(); 322 * 565 * 566 * $request = Request::forge('hello/world')->execute(); 567 * echo $request;README.md https://github.com/sendtogeo/Seo-Panel.git | Markdown | 249 lines
71```php 72require("path/to/sendgrid-php/sendgrid-php.php"); 73``` 86 87The following is the minimum needed code to send an email with the [/mail/send Helper](https://github.com/sendgrid/sendgrid-php/tree/master/lib/helpers/mail) ([here](https://github.com/sendgrid/sendgrid-php/blob/master/examples/helpers/mail/example.php#L22) is a full example): 88 94// If you are not using Composer 95// require("path/to/sendgrid-php/sendgrid-php.php"); 96 97$from = new SendGrid\Email(null, "test@example.com"); 98$subject = "Hello World from the SendGrid PHP Library!"; 99$to = new SendGrid\Email(null, "test@example.com"); 123// If you are not using Composer 124// require("path/to/sendgrid-php/sendgrid-php.php"); 125FilesystemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 240 lines
1<?php 2 120 */ 121 public function testRemoveDirectoryPhp() 122 { 124 @mkdir($tmp . "/composer_testdir/level1/level2", 0777, true); 125 file_put_contents($tmp . "/composer_testdir/level1/level2/hello.txt", "hello world"); 126 127 $fs = new Filesystem; 128 $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir")); 129 $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt")); 134 $tmp = sys_get_temp_dir(); 135 file_put_contents("$tmp/composer_test_file", 'Hello'); 136 144 @mkdir("$tmp/composer_testdir", 0777, true); 145 file_put_contents("$tmp/composer_testdir/file1.txt", 'Hello'); 146 file_put_contents("$tmp/composer_testdir/file2.txt", 'World');Cache.php https://github.com/benbruscella/vpcounselling.com.git | PHP | 198 lines
1<?php 2/** 10 * backend they want. The end developer can then specify which backend to use for each name in their project's 11 * _config.php. They can also use 'all' to provide a backend for all named caches 12 * 31 * 32 * (in _config.php) 33 * 37 * 38 * (in _config.php) 39 * 48 * 49 * (in _config.php) 50 * 150 * // output everything as usual 151 * echo 'Hello world! '; 152 * echo 'This is cached ('.time().') ';test.sh https://github.com/tobinibot/wkhtmltopdf.git | Shell | 288 lines
76 wk tmp.html --user-style-sheet tmp.css tmp.pdf 2>$LEVEL2 >$LEVEL1 77 ([ -f tmp.pdf ] && pdftotext tmp.pdf /dev/stdout | grep -q Hello) && good $1 || bad $1 false 78} 152function testServersideRedirect() { 153 wk http://madalgo.au.dk/~jakobt/redirect.php tmp.pdf 2>$LEVEL2 >$LEVEL1 154 ([ -f tmp.pdf ] && 168 echo "<html><head><title>Local Test</title></head><body><h1>Hello</h1></body></html>" > tmp.html 169 echo "<html><head><title>Local Test</title></head><body><h1>world</h1></body></html>" > tmp2.html 170 wk tmp.html tmp2.html tmp.pdf 2>$LEVEL2 >$LEVEL1 171 ([ -f tmp.pdf ] && 172 pdftotext tmp.pdf /dev/stdout | grep -q Hello && 173 pdftotext tmp.pdf /dev/stdout | grep -q world) && good $1 || bad $1 185function testCustomHeader() { 186 wk http://madalgo.au.dk/~jakobt/cookiewrite.php --custom-header "Cookie" "cookie=hello" tmp.pdf 2>$LEVEL2 >$LEVEL1 187 ([ -f tmp.pdf ] &&test_ext_mailparse.cpp https://github.com/zsj888/hiphop-php.git | C++ | 412 lines
153 "\n" 154 "hello, this is some text hello.\n" 155 "blah blah blah.\n"; 196 "Extract to output\n" 197 "hello, this is some text hello.\n" 198 "blah blah blah.\n" 200 "-->\n" 201 "hello, this is some text hello.\n" 202 "blah blah blah.\n" 206 "rewinding\n" 207 "hello, this is some text hello.\n" 208 "blah blah blah.\n" 219 "\n" 220 "hello, this is some text hello.\n" 221 "blah blah blah.\n"mysql4-upgrade-0.6.2-0.7.0.php https://github.com/jpratt/cal.git | PHP | 48 lines
1<?php 2/** 8 * that is bundled with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@magentocommerce.com so we can send you a copy immediately. 23 * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 33 34UPDATE {$this->getTable('core_email_template')} set template_text='<style type=\"text/css\">\r\nbody,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }\r\n</style>\r\n\r\n<div style=\"font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;\">\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"98%\" style=\"margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;\"\">\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <!-- [ header starts here] -->\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"650\">\r\n <tr>\r\n <td valign=\"top\">\r\n <a href=\"{{store url=\"\"}}\"><img src=\"{{skin url=\"images/logo_email.gif\"}}\" alt=\"Magento\" style=\"margin-bottom:10px;\" border=\"0\"/></a></td>\r\n </tr>\r\n </table>\r\n\r\n <!-- [ middle starts here] -->\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"650\">\r\n <tr>\r\n <td valign=\"top\">\r\n <p><strong>Hello {{var billing.name}}</strong>,<br/>\r\n Thank you for your order from Magento Demo Store. Once your package ships we will send an email with a link to track your order. You can check the status of your order by <a href=\"{{store url=\"customer/account/\"}}\" style=\"color:#1E7EC8;\">logging into your account</a>. If you have any questions about your order please contact us at <a href=\"mailto:dummyemail@magentocommerce.com\" style=\"color:#1E7EC8;\">dummyemail@magentocommerce.com</a> or call us at <span class=\"nobr\">(555) 555-0123</span> Monday - Friday, 8am - 5pm PST.</p>\r\n <p>Your order confirmation is below. Thank you again for your business.</p>\r\n \r\n <h3 style=\"border-bottom:2px solid #eee; font-size:1.05em; padding-bottom:1px; \">Your Order #{{var order.increment_id}} <small>(placed on {{var order.getCreatedAtFormated(\'long\')}})</small></h3>\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\r\n <thead>\r\n <tr>\r\n <th align=\"left\" width=\"48.5%\" bgcolor=\"#d9e5ee\" style=\"padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;\">Billing \r\n Information:</th>\r\n <th width=\"3%\"></th>\r\n <th align=\"left\" width=\"48.5%\" bgcolor=\"#d9e5ee\" style=\"padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;\">Payment \r\n Method:</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\" style=\"padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;\">{{var order.billing_address.getFormated(\'html\')}}</td>\r\n <td> </td>\r\n <td valign=\"top\" style=\"padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;\"> {{var payment_html}}</td>\r\n </tr>\r\n </tbody>\r\n </table><br/>\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">\r\n <thead>\r\n <tr>\r\n <th align=\"left\" width=\"48.5%\" bgcolor=\"#d9e5ee\" style=\"padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;\">Shipping \r\n Information:</th>\r\n <th width=\"3%\"></th>\r\n <th align=\"left\" width=\"48.5%\" bgcolor=\"#d9e5ee\" style=\"padding:5px 9px 6px 9px; border:1px solid #bebcb7; border-bottom:none; line-height:1em;\">Shipping \r\n Method:</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr>\r\n <td valign=\"top\" style=\"padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;\">{{var order.shipping_address.getFormated(\'html\')}}</td>\r\n <td> </td>\r\n <td valign=\"top\" style=\"padding:7px 9px 9px 9px; border:1px solid #bebcb7; border-top:0; background:#f8f7f5;\">{{var order.shipping_description}}</td>\r\n </tr>\r\n </tbody>\r\n </table><br/>\r\n\r\n{{var items_html}}<br/>\r\n {{var order.getEmailCustomerNote()}} \r\n <p>Thank you again,<br/><strong>Magento Demo Store</strong></p>\r\n\r\n\r\n </td>\r\n </tr>\r\n </table>\r\n \r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n' WHERE template_code='New order (HTML)'; 35UPDATE {$this->getTable('core_email_template')} set template_text='<style type=\"text/css\">body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }</style>\r\n<div style=\"font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;\">\r\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"98%\" style=\"margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;\"\">\r\n <tr>\r\n <td align=\"center\" valign=\"top\">\r\n <!-- [ header starts here] -->\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"650\">\r\n <tr>\r\n <td valign=\"top\">\r\n <a href=\"{{store url=\"\"}}\"><img src=\"{{skin url=\"images/logo_email.gif\"}}\" alt=\"Magento\" style=\"margin-bottom:10px;\" border=\"0\"/></a></td>\r\n </tr>\r\n </table>\r\n\r\n <!-- [ middle starts here] -->\r\n <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"650\">\r\n <tr>\r\n <td valign=\"top\">\r\n <p><strong>Dear {{var billing.name}}</strong>,<br/>\r\n Your order # {{var order.increment_id}} has been <strong>{{var order.getStatusLabel()}}</strong>.</p>\r\n <p>{{var comment}}</p>\r\n <p>If you have any questions, please feel free to contact us at \r\n <a href=\"mailto:magento@varien.com\" style=\"color:#1E7EC8;\">dummyemail@magentocommerce.com</a> or by phone at (555) 555-0123.</p>\r\n <p>Thank you again,<br/><strong>Magento Demo Store</strong></p>\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n </table>\r\n</div>\r\n' WHERE template_code='Order update (HTML)';OfflineTest.php https://github.com/necrogami/zf2.git | PHP | 273 lines
1<?php 2/** 8 * with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://framework.zend.com/license/new-bsd 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@zend.com so we can send you a copy immediately. 40 */ 41class OfflineTest extends \PHPUnit_Framework_TestCase 42{ 89 $this->metadata2 = array ( 90 'hello' => 'world' 91 );removeformat.html https://gitlab.com/gricelya/test | HTML | 76 lines
18 19<form method="post" action="http://www.tinymce.com/dump.php?example=true"> 20 <div> 65 <a href="javascript:;" onmousedown="alert(tinymce.get('elm1').selection.getNode().nodeName);">[Get selected element]</a> 66 <a href="javascript:;" onmousedown="tinymce.execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert HTML]</a> 67 <a href="javascript:;" onmousedown="tinymce.execCommand('mceReplaceContent',false,'<b>{$selection}</b>');">[Replace selection]</a>codegen.rst https://github.com/idris-lang/Idris-dev.git | ReStructuredText | 147 lines
35 36 $ idris --codegen javascript hello.idr -o hello.js 37 38 39Idris can produce big chunks of JavaScript code (hello world weighs in at about 4060 lines). However, the generated code can be minified using the 56 57 $ idris --codegen node hello.idr -o hello 58 $ ./hello 58 $ ./hello 59 Hello world 60 97 98 idris hello.idr --codegen java -o hello.jar 99SSLEngineTest.java https://github.com/dekellum/jetty.git | Java | 371 lines
63 // Useful constants 64 private static final String HELLO_WORLD="Hello world. The quick brown fox jumped over the lazy dog. How now brown cow. The rain in spain falls mainly on the plain.\n"; 65 private static final String JETTY_VERSION=Server.getVersion(); 78 /** The expected response. */ 79 private static final String RESPONSE0="HTTP/1.1 200 OK\n"+"Content-Length: "+HELLO_WORLD.length()+"\n"+"Server: Jetty("+JETTY_VERSION+")\n"+'\n'+HELLO_WORLD; 80 private static final String RESPONSE1="HTTP/1.1 200 OK\n"+"Connection: close\n"+"Server: Jetty("+JETTY_VERSION+")\n"+'\n'+HELLO_WORLD; 121 server.setConnectors(new Connector[]{connector }); 122 server.setHandler(new HelloWorldHandler()); 123 server.start(); 318 319 private static class HelloWorldHandler extends AbstractHandler 320 { 338 PrintWriter out=response.getWriter(); 339 out.print(HELLO_WORLD); 340 out.close();testhtmlwriter.php https://github.com/kpike/moodle.git | PHP | 94 lines
1<?php 2 29} 30require_once($CFG->libdir . '/outputcomponents.php'); 31 40 41 public static $includecoverage = array('lib/outputcomponents.php'); 42 70 public function test_nonempty_tag_with_content() { 71 $this->assertEqual('<div>Hello world!</div>', 72 html_writer::nonempty_tag('div', 'Hello world!'));UnitTestViewController.m https://github.com/vassan/facebook-ios-sdk.git | Objective C | 321 lines
20// Your Facebook APP Id must be set before running this example 21// See http://www.facebook.com/developers/createapp.php 22static NSString* kAppId = @"230820755197"; 188 189 [_facebook requestWithGraphPath:@"me" andDelegate:self]; 190 195 [formatter release]; 196 NSString *msg = @"Hello World"; 197 msg = [msg stringByAppendingString:dateString]; 202 203 [_facebook requestWithGraphPath:@"me/feed" 204 andParams:params 217 [formatter release]; 218 NSString *msg = @"Hi World"; 219 msg = [msg stringByAppendingString:dateString];Question_ChoiceTest.php https://github.com/kodeplay/kodelearn.git | PHP | 92 lines
1<?php defined('SYSPATH') or die('No direct access allowed.'); 2 16 'explain' => array( 17 'hello world', 18 'hello kodelearn' 27 'correctness' => '1', 28 'explanation' => 'hello world' 29 ), 33 'correctness' => '0', 34 'explanation' => 'hello kodelearn' 35 ) 44 'correctness' => '1', 45 'explanation' => 'hello world' 46 ), 60 'correctness' => '1', 61 'explanation' => 'hello world' 62 ),about.controllers.md https://bitbucket.org/alvinpd/monsterninja.git | Markdown | 102 lines
12 13* 控制器的文件名必须全部小写。比如 `articles.php` 14* 全部放置在 **classes/controller** 或其子目录下面。比如 `classes/controller/articles.php` 32 { 33 echo 'Hello World!'; 34 } 38~~~ 39Hello World 40~~~ 56 { 57 echo 'Hello World!'; 58 } 83 { 84 echo 'Hello World!'; 85 }home.md https://bitbucket.org/biggash730/laravel-code-generator.git | Markdown | 260 lines
19 20All views are stored within the **application/views** directory and use the PHP file extension. The **View** class provides a simple way to retrieve your views and return them to the client. Let's look at an example! 21 24 <html> 25 I'm stored in views/home/index.php! 26 </html> 53 54 return Response::make('Hello World!', 200, $headers); 55 }); 83 <html> 84 Hello, <?php echo $name; ?>. 85 </html> 126 <div class="content"> 127 <?php echo render('user.profile'); ?> 128 </div>NoteTest.php https://github.com/ksecor/civicrm.git | PHP | 302 lines
1<?php 2/* 27require_once 'api/v2/Note.php'; 28require_once 'tests/phpunit/CiviTest/CiviUnitTestCase.php'; 29 62 'entity_id' => $this->_contactID, 63 'note' => 'Hello!!! m testing Note', 64 'contact_id' => $this->_contactID, 174 $result = civicrm_note_create( $this->_params ); 175 $this->assertEquals( $result['note'], 'Hello!!! m testing Note'); 176 $this->assertArrayHasKey( 'entity_id', $result ); 234 'note' => 'Note1', 235 'subject' => 'Hello World' 236 );expectation_test.php https://github.com/devsatish/ThinkUp.git | PHP | 299 lines
14 function testStringMatch() { 15 $hello = new EqualExpectation("Hello"); 16 $this->assertTrue($hello->test("Hello")); 73 function testStringMismatch() { 74 $not_hello = new NotEqualExpectation("Hello"); 75 $this->assertTrue($not_hello->test("Goodbye")); 75 $this->assertTrue($not_hello->test("Goodbye")); 76 $this->assertFalse($not_hello->test("Hello")); 77 } 213 $pattern = new PatternExpectation('/hello/i'); 214 $this->assertTrue($pattern->test("Hello world")); 215 $this->assertFalse($pattern->test("Goodbye world")); 219 $pattern = new NoPatternExpectation('/hello/i'); 220 $this->assertFalse($pattern->test("Hello world")); 221 $this->assertTrue($pattern->test("Goodbye world"));EntityReferenceFormatterTest.php https://gitlab.com/geeta7/drupal | PHP | 301 lines
1<?php 2 111 $this->referencedEntity->body = array( 112 'value' => '<p>Hello, world!</p>', 113 'format' => 'full_html', 119 $this->unsavedReferencedEntity->body = array( 120 'value' => '<p>Hello, unsaved world!</p>', 121 'format' => 'full_html', 189 <div class="field__label">Body</div> 190 <div class="field__item"><p>Hello, world!</p></div> 191 </div>start-hello.md https://gitlab.com/brucealdridge/yii2 | Markdown | 139 lines
59 60Trong ví dụ này, phương thức của action nhận tham số `$message`, mặc đinh giá trị là `"Hello"` (Như việc bạn có thể thiết 61lập các giá trị mặc định cho bất kỳ tham số cho các hàm hoặc phương thức trong PHP). Mỗi khi ứng dụng 84Bạn cần lưu trữ view `say` nằm ở đường dẫn `views/site/say.php`. Mỗi khi phương thức [[yii\web\Controller::render()|render()]] 85được gọi ở action, nó sẽ tìm kiếm tập tin PHP nằm ở đường dẫn `views/ControllerID/ViewName.php`. 86 103``` 104http://hostname/index.php?r=site/say&message=Hello+World 105``` 106 107![Hello World](images/start-hello-world.png) 108 108 109URL này sẽ trả về một trang và hiển thị lời chào "Hello World". Trang này có cùng phần header và footer như những trang khác trong ứng dụng. 110README.md https://github.com/marcoscoelho/pyrocms.git | Markdown | 370 lines
16 17 include 'lib/Lex/Autoloader.php'; 18 Lex_Autoloader::register(); 49 50### PHP in Templates 51 51 52By default PHP is encoded, and not executed. This is for security reasons. However, you may at times want to enable it. To do that simply send `true` as the fourth parameter to your `parse()` call. 53 66 67 Hello, {{name}} 68 142 143 {{# Parsed: Hello, World! #}} 144 Hello, {{ name }}!routing.md https://bitbucket.org/Maron1/taqman.git | Markdown | 339 lines
20 21Laravel uses the latest features of PHP 5.3 to make routing simple and expressive. It's important that building everything from APIs to complex web applications is as easy as possible. Routes are typically defined in **application/routes.php**. 22 26 27> **Note:** Routes are evaluated in the order that they are registered, so register any "catch-all" routes at the bottom of your **routes.php** file. 28 32 { 33 return "Hello World!"; 34 }); 39 { 40 return "Hello World!"; 41 }); 204 { 205 return "Hello World"; 206 }));RestClient.php https://github.com/mrbanzai/zf2.git | PHP | 294 lines
1<?php 2/** 8 * with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://framework.zend.com/license/new-bsd 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@zend.com so we can send you a copy immediately. 245 * <code> 246 * $response = $rest->sayHello('Foo', 'Manchu')->get(); 247 * </code> 250 * <code> 251 * $rest->sayHello('Foo', 'Manchu'); 252 * $response = $rest->get();2011-80-135.html https://gitlab.com/bernagg/TI | HTML | 191 lines
11<link rel="alternate" type="application/atom+xml" title="Fred Benenson’s Blog Atom Feed" href="http://fredbenenson.com/blog/feed/atom/" /> 12<link rel="pingback" href="http://fredbenenson.com/blog/xmlrpc.php" /> 13 18<link rel="alternate" type="application/rss+xml" title="Fred Benenson's Blog » Crowd Sourcing Crowd Sourcing (or self-referential Human Intelligence Tasks) Comments Feed" href="http://fredbenenson.com/blog/2008/09/08/crowd-sourcing-crowd-sourcing-or-self-referential-human-intelligence-tasks/feed/" /> 19<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://fredbenenson.com/blog/xmlrpc.php?rsd" /> 20<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://fredbenenson.com/blog/wp-includes/wlwmanifest.xml" /> 21<link rel='index' title='Fred Benenson’s Blog' href='http://fredbenenson.com/blog/' /> 22<link rel='start' title='(First) Post.' href='http://fredbenenson.com/blog/2008/08/10/hello-world/' /> 23<link rel='prev' title='Free Culture @ NYU Moves On' href='http://fredbenenson.com/blog/2008/09/08/free-culture-nyu-moves-on/' /> 110 111<form action="http://fredbenenson.com/blog/wp-comments-post.php" method="post" id="commentform"> 112index.html https://github.com/philips/lpc2009.git | HTML | 189 lines
9 10<link rel="EditURI" type="application/rsd+xml" title="RSD" href="../../../xmlrpc.php?rsd" /> 11<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="../../../wp-includes/wlwmanifest.xml" /> 12<link rel='index' title='Linux Plumbers Conf 2009' href='../../../index.html' /> 13<link rel='start' title='Linux Plumbers Conference 2009 Date and Venue' href='../../02/hello-world/index.html' /> 14<link rel='prev' title='Keynote update and reminders…' href='../keynote-update-and-reminders/index.html' /> 19 <link rel="alternate" type="application/rss+xml" href="../../../comments/feed/index.html" title="Linux Plumbers Conf 2009 latest comments" /> 20 <link rel="pingback" href="../../../xmlrpc.php" /> 21</head> 86 commentScriptWrapper.type = "text/javascript"; 87 commentScriptWrapper.src = "http://www.intensedebate.com/js/wordpressTemplateCommentWrapper2.php?acct="+idcomments_acct+"&postid="+idcomments_post_id+"&title="+escape(idcomments_post_title)+"&url="+idcomments_post_url+"&posttime="+idcomments_post_time+"&postauthor="+idcomments_post_author; 88 document.getElementsByTagName("HEAD")[0].appendChild(commentScriptWrapper); 160 161 <li><a href="https://linuxplumbersconf.org/2009/wp-login.php">Log in</a></li> 162Utils.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 384 lines
1<?php 2/* 34 * The logical filename to display. 35 * Ex: "HelloWorld.pdf". 36 * @param bool $output 180 // Syntax borrowed from https://github.com/jake-mw/CDNTaxReceipts/blob/master/cdntaxreceipts.functions.inc 181 require_once 'tcpdf/tcpdf.php'; 182 // This library is only in the 'packages' area as of version 4.5 182 // This library is only in the 'packages' area as of version 4.5 183 require_once 'FPDI/fpdi.php'; 184 264 public static function _html2pdf_wkhtmltopdf($paper_size, $orientation, $margins, $html, $output, $fileName, $fileInput = FALSE) { 265 require_once 'packages/snappy/src/autoload.php'; 266 $config = CRM_Core_Config::singleton();FileIntegrationTest.class.php https://github.com/ghiata/xp-framework.git | PHP | 603 lines
329 public function readLines() { 330 with ($data= "Hello\nWorld\n"); { 331 $this->writeData($this->file, $data); 447 public function copying() { 448 with ($data= 'Hello World'); { 449 $this->writeData($this->file, $data); 466 public function copyingOver() { 467 with ($data= 'Hello World'); { 468 $this->writeData($this->file, $data); 496 public function moving() { 497 with ($data= 'Hello World'); { 498 $this->writeData($this->file, $data); 519 public function movingOver() { 520 with ($data= 'Hello World'); { 521 $this->writeData($this->file, $data);LoggerConfiguratorPhp.html https://github.com/kennethjiang/Wolke.git | HTML | 226 lines
105<p class="short-description">LoggerConfiguratorPhp class</p> 106<p class="description"><p>This class allows configuration of log4php through an external file that deliver a PHP array in return.</p><p>An example for this configurator is:</p><p><div class="src-code"><ol><li><div class="src-line"><span class="src-inc">require_once </span><span class="src-id">dirname</span><span class="src-sym">(</span>__FILE__<span class="src-sym">)</span>.<span class="src-str">'/../../main/php/Logger.php'</span><span class="src-sym">;</span></div></li> 107<li><div class="src-line"> </div></li> 107<li><div class="src-line"> </div></li> 108<li><div class="src-line"><span class="src-id"><a href="../../log4php/Logger.html">Logger</a></span><span class="src-sym">::</span><a href="../../log4php/Logger.html#methodconfigure">configure</a><span class="src-sym">(</span><a href="http://www.php.net/dirname">dirname</a><span class="src-sym">(</span>__FILE__<span class="src-sym">)</span>.<span class="src-str">'/../resources/configurator_php.php'</span><span class="src-sym">, </span><span class="src-str">'LoggerConfiguratorPhp'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> 109<li><div class="src-line"><span class="src-var">$logger </span>= <span class="src-id"><a href="../../log4php/Logger.html">Logger</a></span><span class="src-sym">::</span><a href="../../log4php/Logger.html#methodgetRootLogger">getRootLogger</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> 109<li><div class="src-line"><span class="src-var">$logger </span>= <span class="src-id"><a href="../../log4php/Logger.html">Logger</a></span><span class="src-sym">::</span><a href="../../log4php/Logger.html#methodgetRootLogger">getRootLogger</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> 110<li><div class="src-line"><span class="src-var">$logger</span><span class="src-sym">-></span><span class="src-id">info</span><span class="src-sym">(</span><span class="src-str">"Hello World!"</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li> 111</ol></div></p><p>Which includes the following snippet:</p><p><div class="src-code"><ol><li><div class="src-line"><span class="src-key">return </span><span class="src-key">array</span><span class="src-sym">(</span></div></li> 137 <p class="notes"> 138 Located in <a class="field" href="_configurators---LoggerConfiguratorPhp.php.html">/configurators/LoggerConfiguratorPhp.php</a> (line <span class="field">39</span>) 139 </p> 222 <p class="notes" id="credit"> 223 Documentation generated on Fri, 27 Nov 2009 07:44:49 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> 224 </p>ParameterBagTest.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 224 lines
1<?php 2 15 16class ParameterBagTest extends \PHPUnit_Framework_TestCase 17{ 194 { 195 $parameters = array('foo' => 'bar', 'hello' => 'world'); 196 $bag = new ParameterBag($parameters); 208 { 209 $parameters = array('foo' => 'bar', 'hello' => 'world'); 210 $bag = new ParameterBag($parameters);structure-widgets.md https://gitlab.com/brucealdridge/yii2 | Markdown | 180 lines
91 if ($this->message === null) { 92 $this->message = 'Hello World'; 93 } 106<?php 107use app\components\HelloWidget; 108?> 113 114```php 115namespace app\components; 146?> 147<?php HelloWidget::begin(); ?> 148 150 151<?php HelloWidget::end(); ?> 152```start-forms.md https://gitlab.com/brucealdridge/yii2 | Markdown | 271 lines
71 72```php 73<?php 89Em seguida, você precisará criar uma ação `entry` no controlador `site` que será usado no novo modelo. O processo de criação e utilização das ações são explicadas na seção 90[Como Fazer um "Hello World"](start-hello.md). 91 154A visão `entry-confirm` simplesmente exibe os dados dos campos `name` e `email`. 155Deverá ser salvo no arquivo `views/site/entry-confirm.php`. 156 157```php 158<?php 159use yii\helpers\Html; 168 169A visão `entry` exibe um formulário HTML. Deverá ser salvo no arquivo `views/site/entry.php`. 170settings_js.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 275 lines
5 * 6 * PHP version 5 7 * LICENSE: This source file is subject to LGPL license 7 * LICENSE: This source file is subject to LGPL license 8 * that is available through the world-wide-web at the following URI: 9 * http://www.gnu.org/copyleft/lesser.html 42 43 <?php echo map::layers_js(TRUE); ?> 44 map.addLayers(<?php echo map::layers_array(TRUE); ?>); 62 // create myPoint, a lat/lon object 63 myPoint = new OpenLayers.LonLat(<?php echo $default_lon; ?>, <?php echo $default_lat; ?>).transform(DispProj, MapProj); 64 71 // set map center and zoom in to default zoom level 72 map.setCenter(myPoint, <?php echo $default_zoom; ?>); 73NormalizerFormatterTest.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 423 lines
16 */ 17class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase 18{ 94 $formatter = new NormalizerFormatter('Y-m-d'); 95 $e = new \SoapFault('foo', 'bar', 'hello', 'world'); 96 $formatted = $formatter->format(array( 244 // Ignore the warning that will be emitted by PHP <5.5.0 245 \PHPUnit_Framework_Error_Warning::$enabled = false; 246 } 254 $res = $reflMethod->invoke($formatter, $record); 255 if (PHP_VERSION_ID < 50500 && $res === '{"message":null}') { 256 throw new \RuntimeException('PHP 5.3/5.4 throw a warning and null the value instead of returning false entirely'); 376 377 // Tests that the wrapped resource is ignored while encoding, only works for PHP <= 5.4 378 $this->assertRegExp(index.html https://github.com/philips/lpc2009.git | HTML | 185 lines
9 10<link rel="EditURI" type="application/rsd+xml" title="RSD" href="../../../xmlrpc.php?rsd" /> 11<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="../../../wp-includes/wlwmanifest.xml" /> 12<link rel='index' title='Linux Plumbers Conf 2009' href='../../../index.html' /> 13<link rel='start' title='Linux Plumbers Conference 2009 Date and Venue' href='../../02/hello-world/index.html' /> 14<link rel='prev' title='Early-bird deadline ends Friday, July 31!' href='../early-bird-deadline-ends-friday-july-31/index.html' /> 19 <link rel="alternate" type="application/rss+xml" href="../../../comments/feed/index.html" title="Linux Plumbers Conf 2009 latest comments" /> 20 <link rel="pingback" href="../../../xmlrpc.php" /> 21</head> 82 commentScriptWrapper.type = "text/javascript"; 83 commentScriptWrapper.src = "http://www.intensedebate.com/js/wordpressTemplateCommentWrapper2.php?acct="+idcomments_acct+"&postid="+idcomments_post_id+"&title="+escape(idcomments_post_title)+"&url="+idcomments_post_url+"&posttime="+idcomments_post_time+"&postauthor="+idcomments_post_author; 84 document.getElementsByTagName("HEAD")[0].appendChild(commentScriptWrapper); 156 157 <li><a href="https://linuxplumbersconf.org/2009/wp-login.php">Log in</a></li> 158designers.php https://gitlab.com/sutrix.hoa.tran/Research-Prestashop | PHP | 322 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: hoa.tran 8 9require_once(dirname(__FILE__) . '/classes/Designer.php'); 10 163// { 164//// echo 'hello world'; 165// return $this->display(__FILE__, 'displayAdminProductsExtra.tpl'); 171// Include the controller file 172 require_once(dirname(__FILE__) . '/controllers/hook/' . $hook_name . '.php'); 173// Build the controller name dynamically 234 if(!defined('_PS_VERSION_')) exit; 235require_once(dirname(__FILE__).'/classes/Designer.php'); 236class Designers extends Modulenet.js https://github.com/glow/glow2.git | JavaScript | 404 lines
36 37 var request = glow.net.get('xhr/requestheaderdump.php', 38 {headers: { 91 ok(xml, "xml returned"); 92 equal(xml.getElementsByTagName("hello").length, 1, "1 element of hello"); 93 equal(xml.getElementsByTagName("world").length, 1, "1 element of world"); 93 equal(xml.getElementsByTagName("world").length, 1, "1 element of world"); 94 equal(xml.getElementsByTagName("world")[0].childNodes[0].nodeValue, 'Yey for XML', "Got text node value"); 95 start(); 116 ok(json, "json returned"); 117 equal(json.hello, "world", "Returned correct value for 'hello'"); 118 equal(json.something, 3, "Returned correct value for 'something'"); 228 ok(true, "load called"); 229 equal(data.hello, "world", "Data returned"); 230 start();lookup.py https://gitlab.com/pmuontains/Odoo | Python | 354 lines
4# This module is part of Mako and is released under 5# the MIT License: http://www.opensource.org/licenses/mit-license.php 6 102 ''') 103 lookup.put_string("hello.html", ''' 104 <%include file='base.html'/> 105 106 Hello, world ! 107 ''')htmlwriter_test.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 172 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 21 * @package core 22 * @category phpunit 23 * @copyright 2010 Tim Hunt 29global $CFG; 30require_once($CFG->libdir . '/outputcomponents.php'); 31 68 public function test_nonempty_tag_with_content() { 69 $this->assertEquals('<div>Hello world!</div>', 70 html_writer::nonempty_tag('div', 'Hello world!'));function.ncurses-start-color.html https://bitbucket.org/thncr/manuals.git | HTML | 84 lines
11 <div class="up"><a href="ref.ncurses.html">Ncurses 函数</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="function.ncurses-start-color" class="refentry"> 15 <h1 class="refname">ncurses_start_color</h1> 16 <p class="verinfo">(PHP 4 >= 4.0.7, PHP 5 < 5.3.0, PECL ncurses >= 1.0.0)</p><p class="refpurpose"><span class="refname">ncurses_start_color</span> — <span class="dc-title">Initializes color functionality</span></p> 17 57<div class="phpcode"><code><span style="color: #000000"> 58<span style="color: #0000BB"><?php<br />ncurses_init</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">// If the terminal supports colors, initialize and set active color<br /></span><span style="color: #007700">if (</span><span style="color: #0000BB">ncurses_has_colors</span><span style="color: #007700">()) {<br /> </span><span style="color: #0000BB">ncurses_start_color</span><span style="color: #007700">();<br /> </span><span style="color: #0000BB">ncurses_init_pair</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #0000BB">NCURSES_COLOR_YELLOW</span><span style="color: #007700">, </span><span style="color: #0000BB">NCURSES_COLOR_BLUE</span><span style="color: #007700">);<br /> </span><span style="color: #0000BB">ncurses_color_set</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />}<br /><br /></span><span style="color: #FF8000">// Write a string at specified location<br /></span><span style="color: #0000BB">ncurses_mvaddstr</span><span style="color: #007700">(</span><span style="color: #0000BB">10</span><span style="color: #007700">, </span><span style="color: #0000BB">10</span><span style="color: #007700">, </span><span style="color: #DD0000">"Hello world! Yellow on blue text!"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Flush output to screen<br /></span><span style="color: #0000BB">ncurses_refresh</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">ncurses_end</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?></span> 59</span> 82 <div class="up"><a href="ref.ncurses.html">Ncurses 函数</a></div> 83 <div class="home"><a href="index.html">PHP Manual</a></div> 84</div></body></html>javascript.vim https://github.com/qsorix/vim.git | Vim Script | 423 lines
5" Version: 1.4.6 6" Homepage: http://www.vim.org/scripts/script.php?script_id=3227 7" Repository: https://github.com/jiangmiao/simple-javascript-indenter 280 " function a() { 281 " test(["hello", 282 " "world",005_variation.php https://github.com/tstarling/hiphop-php.git | PHP | 170 lines
1<?php 2/* 74$file_write_handle = fopen($file_name, "w"); 75fwrite($file_write_handle, "Hello, world"); 76fclose($file_write_handle); 146?> 147<?php 148$file_path = dirname(__FILE__);post.php https://github.com/agnesrambaud/yacs.git | PHP | 315 lines
30 * 31 * @see control/configure.php 32 * 36 * [snippet] 37 * POST /yacs/comments/post.php/123 HTTP/1.1 38 * Content-Type: text/xml 44 * <pubDate>Mon, 04 Oct 2004 12:21:52 GMT</pubDate> 45 * <description><![CDATA[hello world ]]></description> 46 * <author>foo.bar@acme.com (Foo)</author> 53 * [snippet] 54 * POST http://www.foo.com/yacs/comments/post.php/123 55 * Content-Type: application/x-www-form-urlencoded 65 * - post.php/<type>/<id> create a new comment for this anchor 66 * - post.php?anchor=<type>:<id> create a new comment for this anchor 67 * - post.php/<id> create a new comment for the anchor 'article:<id>'README.md https://gitlab.com/hacongbang/pusher | Markdown | 308 lines
2 3[![Build Status](https://travis-ci.org/pusher/pusher-http-php.svg)](https://travis-ci.org/pusher/pusher-http-php) 4 10 11You can get the Pusher PHP library via a composer package called `pusher-php-server`. See <https://packagist.org/packages/pusher/pusher-php-server> 12 71```php 72$pusher->trigger( 'my-channel', 'my_event', 'hello world' ); 73``` 77```php 78$pusher->trigger( [ 'channel-1', 'channel-2' ], 'my_event', 'hello world' ); 79``` 289 290Requires [phpunit](https://github.com/sebastianbergmann/phpunit/). 291AuthTest.php https://github.com/EvanDotPro/zf1-mirror.git | PHP | 347 lines
1<?php 2/** 8 * with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://framework.zend.com/license/new-bsd 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@zend.com so we can send you a copy immediately. 23// Call Zend_Amf_AuthTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_Amf_AuthTest::main"); 27 28require_once 'Zend/Amf/Server.php'; 29require_once 'Zend/Amf/Request.php'; 29require_once 'Zend/Amf/Request.php'; 30require_once 'Zend/Amf/Parse/TypeLoader.php'; 31require_once 'Zend/Amf/Auth/Abstract.php';FilesystemTest.php https://bitbucket.org/mikebosire/framework.git | PHP | 110 lines
8 { 9 file_put_contents(__DIR__.'/file.txt', 'Hello World'); 10 $files = new Filesystem; 10 $files = new Filesystem; 11 $this->assertEquals('Hello World', $files->get(__DIR__.'/file.txt')); 12 @unlink(__DIR__.'/file.txt'); 18 $files = new Filesystem; 19 $files->put(__DIR__.'/file.txt', 'Hello World'); 20 $this->assertEquals('Hello World', file_get_contents(__DIR__.'/file.txt')); 26 { 27 file_put_contents(__DIR__.'/file.txt', 'Hello World'); 28 $files = new Filesystem; 37 mkdir(__DIR__.'/foo'); 38 file_put_contents(__DIR__.'/foo/file.txt', 'Hello World'); 39 $files = new Filesystem;messagelib_test.php https://github.com/itamart/moodle.git | PHP | 361 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 28global $CFG; 29require_once($CFG->dirroot . '/message/lib.php'); 30 40 41 /** @var phpunit_message_sink keep track of messages. */ 42 protected $messagesink = null; 65 */ 66 protected function send_fake_message($userfrom, $userto, $message = 'Hello world!') { 67 global $DB;test_ext_math.cpp https://github.com/kevlund/hiphop-php.git | C++ | 399 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 87 VS(f_min(1, 0, CREATE_VECTOR1("hello")), 0); 88 VS(f_min(1, "hello", CREATE_VECTOR1(0)), "hello"); 89 VS(f_min(1, "hello", CREATE_VECTOR1(-1)), -1); 103 VS(f_max(1, "hello", CREATE_VECTOR1(0)), "hello"); 104 VS(f_max(1, "hello", CREATE_VECTOR1(-1)), "hello"); 105 VS(f_max(1, CREATE_VECTOR3(2, 4, 8),UnitTestViewController.m https://github.com/nowi/facebook-ios-sdk.git | Objective C | 321 lines
20// Your Facebook APP Id must be set before running this example 21// See http://www.facebook.com/developers/createapp.php 22static NSString* kAppId = @"230820755197"; 188 189 [_facebook requestWithGraphPath:@"me" andDelegate:self]; 190 195 [formatter release]; 196 NSString *msg = @"Hello World"; 197 msg = [msg stringByAppendingFormat:dateString]; 202 203 [_facebook requestWithGraphPath:@"me/feed" 204 andParams:params 217 [formatter release]; 218 NSString *msg = @"Hi World"; 219 msg = [msg stringByAppendingFormat:dateString];jit-core.md https://gitlab.com/iranjith4/hhvm | Markdown | 284 lines
5machine code. The vast majority of the code implementing the JIT lives in the 6namespace `HPHP::jit`, in [hphp/runtime/vm/jit](../../runtime/vm/jit). Most 7file and class names referenced in this document will be relative to that 89or any arbitrary union of primitive types. Primitive types exist for 90PHP-visible types such as `Int`, `Obj`, and `Bool`, and runtime-internal types 91such as `FramePtr`, `Func`, and `Cls`. Primitive types also exist for PHP 91such as `FramePtr`, `Func`, and `Cls`. Primitive types also exist for PHP 92references and pointers to PHP values: for each primitive PHP type `T`, 93`BoxedT`, `PtrToT`, and `PtrToBoxedT` also exist. A number of types commonly 100constant values and "specialized" types. A constant `Type` may represent the 101integer 5 or the string "Hello, world!", while a specialized type can represent 102an object of a specific class or an array of a specific kind. 111As previously mentioned, types in HHIR represent a mix of PHP-visible types and 112internal types. The following table describes types representing PHP 113values. Note that the types used here are more specific than what can beLocator.php https://gitlab.com/itlboy/yii2-starter-installed | PHP | 337 lines
29 * 30 * ```php 31 * <?php 60 * 61 * ```php 62 * <?php 166 * 167 * ```php 168 * <?php 225 * Locator::contains('label', 'Name'); // label containing name 226 * Locator::contains('div[@contenteditable=true]', 'hello world'); 227 * ``` 277 * ```php 278 * <?php 279 * use Codeception\Util\Locator;type_casting.php https://github.com/bermi/akelos.git | PHP | 92 lines
1<?php 2 2 3require_once(dirname(__FILE__).'/../config.php'); 4 28 //'title' => 'Hello', 29 //'body' => 'Hello world!', 30 'posted_on(1i)' => '2005', 45 'title' => 'Expiring salutation', 46 'body' => 'Expiring Hello world!', 47 'expires_at(1i)' => '2007',NamespacedAttributeBagTest.php https://gitlab.com/techniconline/kmc | PHP | 183 lines
1<?php 2 20 */ 21class NamespacedAttributeBagTest extends \PHPUnit_Framework_TestCase 22{ 35 $this->array = array( 36 'hello' => 'world', 37 'always' => 'be happy', 112 113 $this->bag->set('hello', 'fabien'); 114 $array = $this->array; 132 { 133 $this->assertEquals('world', $this->bag->get('hello')); 134 $this->bag->remove('hello'); 164 return array( 165 array('hello', 'world', true), 166 array('always', 'be happy', true),BaseTest.php https://github.com/wrobel/horde.git | PHP | 246 lines
1<?php 2/** 112 $expected = "<div>test</div>"; 113 $this->assertEquals($expected, $this->_view->render('testRender.html.php')); 114 } 157 { 158 $this->_view->myObject = (object)array('string_value' => 'hello world'); 159 $expected = '<div><p>hello world</p></div>'; 165 { 166 $expected = '<div><p>hello world</p></div>'; 167 $this->assertEquals($expected, $this->_view->render('testPartialLocals')); 172 { 173 $this->_view->myObjects = array((object)array('string_value' => 'hello'), 174 (object)array('string_value' => 'world')); 174 (object)array('string_value' => 'world')); 175 $expected = '<div><p>hello</p><p>world</p></div>'; 176 $this->assertEquals($expected, $this->_view->render('testPartialCollection'));Node.class.php https://github.com/Gamepay/xp-framework.git | PHP | 494 lines
1<?php 2/* This class is part of the XP framework 40 * $n= new Node('document'); 41 * $n= new Node('text', 'Hello World'); 42 * $n= new Node('article', '', array('id' => 42));README.md https://github.com/skygreen2001/betterlife.git | Markdown | 148 lines
12 - [DaoCloud 镜像市场](https://hub.daocloud.io/) 13 - 搜索镜像[PHP]: docker search php 14 - 第一个docker应用: docker run hello-world 23 - 从容器拷贝文件到宿主机: docker cp 容器名:容器中要拷贝的文件名及其路径 要拷贝到宿主机里面对应的路径 24 - docker cp 17dbf5447e99:/usr/share/nginx/html/test.php /Users/master/Downloads/ 25 123 - [Environment variables in Compose](https://docs.docker.com/compose/environment-variables/) 124 - [My Simple Approach to using Docker and PHP](https://bitpress.io/simple-approach-using-docker-with-php/) 125 - [laravel-demo](https://github.com/khs1994-docker/laravel-demo) 128 - [Laradock is a full PHP development environment based on Docker](https://laradock.io/) 129 - [PHPDocker](https://phpdocker.io/) 130 - [DevDock](https://github.com/iMacken/DevDock) 131 - [Docker Development Environment for PHP Apps](https://rodrigodelimavieira.com/docker-development-environment-for-php-apps-cju2vko5r000csms18kzo1tgl) 132 - [Setting up PHP, PHP-FPM and NGINX for local development on DockerA primer on PHP on Docker under Windows 10](https://www.pascallandau.com/blog/php-php-fpm-and-nginx-on-docker-in-windows-10/) 133PhpMatcherDumperTest.php https://gitlab.com/techniconline/kmc | PHP | 264 lines
1<?php 2 13 14use Symfony\Component\Routing\Matcher\Dumper\PhpMatcherDumper; 15use Symfony\Component\Routing\Route; 17 18class PhpMatcherDumperTest extends \PHPUnit_Framework_TestCase 19{ 30 )); 31 $dumper = new PhpMatcherDumper($collection); 32 $dumper->dump(); 41 42 $dumper = new PhpMatcherDumper($collection); 43 $this->assertStringEqualsFile($basePath . $fixture, $dumper->dump($options), '->dump() correctly dumps routes as optimized PHP code.'); 135 $collection1->add('overridden2', new Route('/old')); 136 $collection1->add('helloWorld', new Route('/hello/{who}', array('who' => 'World!'))); 137 $collection2 = new RouteCollection();URITemplateTest.php https://gitlab.com/oytunistrator/google-api-php-client | PHP | 296 lines
25 $var = "value"; 26 $hello = "Hello World!"; 27 34 "Hello%20World%21", 35 $urit->parse("{hello}", array("hello" => $hello)) 36 ); 41 $var = "value"; 42 $hello = "Hello World!"; 43 $path = "/foo/bar"; 92 "1024,Hello%20World!,768", 93 $urit->parse("{+x,hello,y}", array("x" => $x, "y" => $y, "hello" => $hello)) 94 ); 231 $var = "value"; 232 $hello = "Hello World!"; 233 $urit = new Google_Utils_URITemplate();TwimlTest.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 377 lines
295 $g = $r->gather(array("action"=>"example.com", "method"=>"GET")); 296 $g->say("Hello World"); 297 $g->play("helloworld.mp3"); 313 $g->say("Hello World"); 314 $g->play("helloworld.mp3"); 315 $g->pause(); 319 <Say>Hello World</Say> 320 <Play>helloworld.mp3</Play> 321 <Pause></Pause> 336 $r->sms("Hello World"); 337 $expected = '<Response><Sms>Hello World</Sms></Response>'; 338 $this->assertXmlStringEqualsXmlString($expected, $r); 343 $r->sms("Hello World"); 344 $expected = '<Response><Sms>Hello World</Sms></Response>'; 345 $this->assertXmlStringEqualsXmlString($expected, $r);template.php https://bitbucket.org/matyhaty/senses-thwaites.git | PHP | 216 lines
1<?php 2if (!defined('BASEPATH')) 23 | full template or region per region. Include the file extension if other 24 | than ".php" 25 | ['regions'] Places within the template where your content may land. 45 | 'header' => array( 46 | 'content' => array('<h1>Welcome</h1>','<p>Hello World</p>'), 47 | 'name' => 'Page Header', 214 215/* End of file template.php */ 216/* Location: ./system/application/config/template.php */Smtp.php https://github.com/bhaumik25/zend-framework.git | PHP | 376 lines
1<?php 2/** 8 * license, that is bundled with this package in the file LICENSE, and 9 * is available through the world-wide-web at the following URL: 10 * http://www.zend.com/license/framework/1_0.txt. If you did not receive 11 * a copy of the Zend Framework license and are unable to obtain it 12 * through the world-wide-web, please send a note to license@zend.com 13 * so we can mail you a copy immediately. 23 */ 24require_once 'Zend/Mail/Transport/Exception.php'; 25 28 */ 29require_once 'Zend/Mail/Transport/Interface.php'; 30 138 try { 139 $this->_expect(250); // Hello OK is code 250 140 } catch (Zend_Mail_Transport_Exception $e) {import.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 226 lines
1<?php 2 16 add_filter( 'import_allow_create_users', '__return_true' ); 17 require_once DIR_TESTDATA . '/plugins/wordpress-importer/wordpress-importer.php'; 18 138 $this->assertEquals( 0, $post->post_parent ); 139 $this->assertEquals( 'onecolumn-page.php', get_post_meta( $post->ID, '_wp_page_template', true ) ); 140 177 $post = $posts[10]; 178 $this->assertEquals( 'Hello world!', $post->post_title ); 179 $this->assertEquals( 'hello-world', $post->post_name );PropelXMLParserTest.php https://github.com/1989gaurav/Propel.git | PHP | 198 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/../../../../runtime/lib/parser/PropelParser.php'; 12require_once dirname(__FILE__) . '/../../../../runtime/lib/parser/PropelXMLParser.php'; 20 */ 21class PropelXMLParserTest extends PHPUnit_Framework_TestCase 22{ 47", 'associative array with strings'), 48 array(array('a' => '<html><body><p style="width:30px;">Hello, World!</p></body></html>'), "<?xml version=\"1.0\" encoding=\"UTF-8\"?> 49<data> 49<data> 50 <a><![CDATA[<html><body><p style="width:30px;">Hello, World!</p></body></html>]]></a> 51</data>TEMPLATES.md https://github.com/glenngillen/nesta.app.git | Markdown | 439 lines
39 => #<Tilt::ERBTemplate @file='hello.html.erb'> 40 >> template.render(self, :world => 'World!') 41 => "Hello World!" 45 require 'erb' 46 template = Tilt::ERBTemplate.new(nil, :trim => '<>') { "Hello <%= world %>!" } 47 template.render(self, :world => 'World!') 262 <body> 263 <h1>Hello {{ world }}!</h1> 264 </body> 415 scope.title = "Radius Example" 416 scope.hello = "Hello, World!" 417 429 <li>Hello, World!</li> 430 <li>Hello, World!</li> 431 </ul>base.php https://github.com/pratikdhaboo/kodelearn.git | PHP | 188 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2 35 { 36 $this->response->body('hello, world!'); 37 }quickstart.html https://code.google.com/p/pct/ | HTML | 306 lines
21 <span id="sflogo"> 22 <a href="http://sourceforge.net"><img id="sflogoimg" alt="SourceForge.net Logo" height="31" width="88" src="http://sourceforge.net/sflogo.php?group_id=%3Cb%3E85743%3C/b%3E&amp;type=1"/></a> 23 </span> 39<h1>Quick start</h1> 40<h2>Step 1 : first build.xml file (aka Hello, world!) [Download <a href="sample1.zip">sample</a>]</h2> 41<p>2011-23-057.html https://gitlab.com/bernagg/TI | HTML | 146 lines
22 <link rel="alternate" type="application/rss+xml" title="Darren Bridger RSS Feed" href="http://www.darrenbridger.net/feed/" /> 23 <link rel="pingback" href="http://www.darrenbridger.net/xmlrpc.php" /> 24 27<script type='text/javascript' src='http://www.darrenbridger.net/wp-content/plugins/content-slide/js/jquery.innerfade.js?ver=2.9.2'></script> 28<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.darrenbridger.net/xmlrpc.php?rsd" /> 29<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.darrenbridger.net/wp-includes/wlwmanifest.xml" /> 30<link rel='index' title='Darren Bridger' href='http://www.darrenbridger.net' /> 31<link rel='start' title='Hello world!' href='http://www.darrenbridger.net/uncategorized/hello-world/' /> 32<link rel='prev' title='Review of ‘You are not a gadget’ by Jaron Lanier' href='http://www.darrenbridger.net/articles/review-of-%e2%80%98you-are-not-a-gadget%e2%80%99-by-jaron-lanier/' /> 74<p>A lot of ancient magic came out of tricks used to cheat people at gambling. Playing cards have long been used in magic tricks. Although their exact origin is a mystery, it’s widely believed that playing cards were invented in China, where they may have originally been a form of money. They would have been both the tools of gambling and the prize to be won. They then arrived in Europe, via Egypt, around the late 13<sup>th</sup> Century. The four suits of this pack were different to the ones we have today, they were polo sticks, coins, swords, and cups. The modern design originated in France in 1480.</p> 75<p>During the sixteenth Century onwards, magic techniques began to be used to trick people into believing that amazing mechanical beings had been created. The most famous of these was the Mechanical Chess playing Turk. This was a ‘clockwork’ life-sized figure dressed in Eastern costume seated at a very large box with a chess board and pieces on top of it. When it was first publicly displayed in 1770, in the imperial court of Vienna, people were shocked and amazed. The ‘clockwork’ man could move his arms and play chess against a Human opponent. So well, in fact, that he could play it to world-class standards. The mechanical Turk was taken all over the world and played before large audiences, it even played against Napoleon and Benjamin Franklin. Of course, the Turk was really an elaborate trick, a real man was cleverly hidden inside the box, and controlled the mechanical arms.</p> 76<p>It was, however, only in the 19<sup>th</sup> Century that magic really took off. The inventor of the magic stage show, in the modern sense, was a French clockmaker called Jean Eugène Robert-Houdin (1805-1871), who opened a theatre in which he would display mechanical animals he had created that appeared to be alive. A similar magic theatre, called the ‘Egyptian Hall’ was opened in London soon afterwards. Then came possibly the best known magician of all time, the escapologist Harry Houdini (1874-1926). Whilst Houdini had a range of genuine skills, such as lock-picking, that helped his performances, they were undoubtedly also employing magic techniques for their effects.</p> 110 111<a href="http://www.facebook.com/sharer.php?u=http://www.darrenbridger.net/articles/the-history-of-magic-and-the-mind/&amp;t=The history of magic and the mind" title="Share on Facebook." target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.facebook.com/sharer.php?u=http_//www.darrenbridger.net/articles/the-history-of-magic-and-the-mind/_amp_amp_t=The_history_of_magic_and_the_mind&referer=');"> 112 <img src="http://www.darrenbridger.net/wp-content/themes/darren-wp/style/images/facebook.png" alt="Share on Facebook" id="sharethis-last" />vfprintf_variation4_64bit.php https://github.com/tstarling/hiphop-php.git | PHP | 78 lines
1<?php 2/* Prototype : int vfprintf ( resource $handle , string $format , array $args ) 34 array(" ", ' ', 'hello', 35 '123hello', "123hello", '-123hello', '+123hello', 36 "\12345678hello", "-\12345678hello", '0123456hello', 'h123456ello', 36 "\12345678hello", "-\12345678hello", '0123456hello', 'h123456ello', 37 "1234hello", "hello\0world", "NULL", "true", 38 "3", "4", '1', '2'), 43 array(true), array(false), array(TRUE), array(FALSE), 44 array("123hello"), array("1", "2"), array('123hello'), array(12=>"12twelve"), 45 array("3"), array("4"), array("1"), array("2") ),array_intersect_key_variation3.php https://github.com/tstarling/hiphop-php.git | PHP | 99 lines
1<?php 2/* Prototype : array array_intersect_key(array arr1, array arr2 [, array ...]) 33$heredoc = <<<EOT 34hello world 35EOT;basename_variation4.php https://github.com/tstarling/hiphop-php.git | PHP | 102 lines
1<?php 2/* Prototype : string basename(string path [, string suffix]) 39$heredoc = <<<EOT 40hello world 41EOT;imagecolorallocate_variation1.php https://github.com/tstarling/hiphop-php.git | PHP | 105 lines
1<?php 2/* Prototype : int imagecolorallocate(resource im, int red, int green, int blue) 35$heredoc = <<<EOT 36hello world 37EOT;OfflineTest.php https://github.com/shevron/zf2.git | PHP | 260 lines
1<?php 2/** 27 */ 28class OfflineTest extends \PHPUnit_Framework_TestCase 29{ 76 $this->metadata2 = array ( 77 'hello' => 'world' 78 );QueueBaseTest.php https://github.com/mfairchild365/zf2.git | PHP | 249 lines
1<?php 2/** 8 * with this package in the file LICENSE.txt. 9 * It is also available through the world-wide-web at this URL: 10 * http://framework.zend.com/license/new-bsd 11 * If you did not receive a copy of the license and are unable to 12 * obtain it through the world-wide-web, please send an email 13 * to license@zend.com so we can send you a copy immediately. 44 */ 45abstract class QueueBaseTest extends \PHPUnit_Framework_TestCase 46{ 171 // ------------------------------------ send() 172 $message = 'Hello world'; // never gets boring! 173 $this->assertTrue($this->queue->send($message) instanceof \Zend\Queue\Message);security.rst https://github.com/steinkel/docs.git | ReStructuredText | 152 lines
11 ``Security.useOpenSsl`` に設定することによってこの振る舞いを変更できます。もし 12 PHP=>7.1 でデフォルトの設定を使用している場合、PECL 経由で ``mcrypt`` を 13 インストールする必要があります。 24 // 'my_key' でテキストを暗号化する 25 $secret = Security::cipher('hello world', 'my_key'); 26 65 このメソッドをパスワードの保存に **使用しないでください**。代わりに 66 :php:meth:`~Security::hash()`` などの一方行ハッシュメソッドを使用してください。 67 以下が使用例です。 :: 72 73 暗号化された値は、 :php:meth:`Security::decrypt()` で復号化されます。 74 151 :title lang=ja: セキュリティ 152 :keywords lang=ja: セキュリティ api,秘密のパスワード,暗号文,php クラス,セキュリティクラス,テキストキー,セキュリティライブラリ,オブジェクトインスタンス,セキュリティ計測,基本セキュリティ,セキュリティレベル,文字列タイプ,fallback,ハッシュ,データセキュリティ,シングルトン,不活発,php 復号,実装,php セキュリティ 153InflectorTest.php https://gitlab.com/xibalba/ocelote | PHP | 163 lines
1<?php 2 4 5use PHPUnit\Framework\TestCase; 6use xibalba\ocelote\Inflector; 18 public function testFilenamize(){ 19 $this->assertEquals('Llamas.php', Inflector::filenamize('llamas')); 20 $this->assertEquals('Llamas.hh', Inflector::filenamize('llamas', 'hh')); 96 '' => '', 97 'hello world 123' => 'hello-world-123', 98 'remove.!?[]{}…symbols' => 'removesymbols',