<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 19:25:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Debuggable Blog: Better array syntax for PHP: Here's your chance to weigh in]]></title>
      <guid>http://www.phpdeveloper.org/news/10380</guid>
      <link>http://www.phpdeveloper.org/news/10380</link>
      <description><![CDATA[<p>
On the Debuggable blog, <i>Nate Abele</i> has <a href="http://www.debuggable.com/posts/better-array-syntax-for-php:484d6517-a700-4af3-a62f-64544834cda3">posted a request</a> for opinions on a topic that's been lighting up the PHP mailing lists (and other social media) lately - the alternative array syntax for PHP.
</p>
<blockquote>
Well, there's a patch available, but 2/3 of the active PHP committers (who participated in the vote) voted against its inclusion. However, of the end-users participating in the discussion, 17 out of 20 voted in favor. Shortly before the voting was concluded, there was a call for some user-land input, so I decided to <a href="http://news.php.net/php.internals/38120">humbly submit my two pennies</a>.
</blockquote>
<p>
His comments support the idea, noting that arrays are "our bread and butter" for the language and should be updated to make them even easier to use (and more in line with the declarations of other variable types).
</p>]]></description>
      <pubDate>Tue, 10 Jun 2008 12:07:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP 10.0 Blog: We are doomed! (and Ticks in PHP)]]></title>
      <guid>http://www.phpdeveloper.org/news/8085</guid>
      <link>http://www.phpdeveloper.org/news/8085</link>
      <description><![CDATA[<p>
In <a href="http://php100.wordpress.com/2007/06/17/we-are-doomed/">this new post</a> to the PHP 10.0 blog, <i>Stas</i> mentions the "impending doom" of PHP that's been going around the community, including in <a href="http://blogs.techrepublic.com.com/programming-and-development/?p=85">this post</a> on the TechRepublic site.
</p>
<p>
He does, however, branch off into something much more interesting that seems to be somewhat ignored by developers - the use of <a href="http://www.php.net/manual/en/control-structures.declare.php#control-structures.declare.ticks">ticks</a> on their code:
</p>
<blockquote>
This is something named "ticks" - I wonder how many of the PHP developers heard about it and of those how many actually used it. Could it be used for offloading long-running I/O-bound tasks or grouping them together (e.g. so we could wait for DB and HTTP in parallel and not sequentially)? Would there be any use at all for such functionality and if so - how it's supposed to work? I.e. how would you know it's done and how you would collect and use the results?
</blockquote>
<p>
It's <a href="http://php100.wordpress.com/2007/06/17/we-are-doomed/#comments">suggested in the comments</a> that it could be used for any kind of application that might need the pseudo-multithreading it offers (including something like scripts needing multiple TCP connections).
</p>]]></description>
      <pubDate>Wed, 20 Jun 2007 10:29:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Inside Open Source: Possible addition to array syntax in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7216</guid>
      <link>http://www.phpdeveloper.org/news/7216</link>
      <description><![CDATA[<p>
According to <a href="http://opensource.apress.com/article/232/possible-addition-to-array-syntax-in-php">this new post</a> on the Inside Open Source blog from APress, <i>Andi Gutmas</i> has made a <a href="http://marc.theaimsgroup.com/?l=php-dev&m=117057393530217&w=2"suggestion</a> for a new syntax to be added to the existing array functionality in PHP.
</p>
<p>
The suggestion involves the use of brackets ([ and ]) to declare the initial array, similar to the way other languages (even Javascript) work.
</p>
<blockquote>
The current split among the big players in PHP development looks to be about 50/50. The general thought of the opposition is that it is an unnecessary change that will only lead to confusion in the future. Why create two ways of doing the same thing?
</blockquote>]]></description>
      <pubDate>Mon, 05 Feb 2007 07:34:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[YoungCoders.com: The PHP Construct You've Never Used]]></title>
      <guid>http://www.phpdeveloper.org/news/6304</guid>
      <link>http://www.phpdeveloper.org/news/6304</link>
      <description><![CDATA[<p>
As <a href="http://devzone.zend.com/node/view/id/926">pointed out</a> by the Zend Developer Zone today, there's a <a href="http://www.youngcoders.com/showthread.php?t=22319">useful forum post</a> over on the YoungCoders.com website that talks about very useful feature that some PHP developers just don't use - ticks.
</p>
<blockquote>
You've probably never used it, never saw it, or never found a practical use for ticks, a underused and powerful feature of PHP that allows you to implement exceptions in PHP4, do intensive debugging and profiling, check database connections, turn PHP into an event driven language, or harness complex control over your code.
</blockquote>
<p>
<a href="http://www.youngcoders.com/showthread.php?t=22319">The post</a> talks about what ticks are, how to enable them, and a few examples of how to use them. Check out more about them in <a href="http://www.php.net/manual/en/control-structures.declare.php#control-structures.declare.ticks">this page</a> on the PHP Manual.
</p>]]></description>
      <pubDate>Tue, 19 Sep 2006 07:38:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: Initializing & typing variables with settype()]]></title>
      <guid>http://www.phpdeveloper.org/news/6269</guid>
      <link>http://www.phpdeveloper.org/news/6269</link>
      <description><![CDATA[<p>
In <a href="http://doughboy.wordpress.com/2006/09/14/initializing-typing-variables-with-settype/">his latest post</a>, <i>Brian Moon</i> talks about a method to help you and your code fit into an E_STRICT style of coding - the <a href="http://www.php.net/settype">settype function</a>.
</p>
<blockquote>
These days, the way to develop is to have E_ALL and maybe even throw in E_STRICT if you are really hard core. That of course means having all your variables initialized before they are used.
</blockquote>
<p>
In <a href="http://doughboy.wordpress.com/2006/09/14/initializing-typing-variables-with-settype/">his view</a>, defining them is good, but it's more "elegant" to use the settype function to make it more clear where they are defined. He also includes a function, using settype, that ensures that the entered values are what they should be (i.e. and int is an int).
</p>]]></description>
      <pubDate>Thu, 14 Sep 2006 07:01:47 -0500</pubDate>
    </item>
  </channel>
</rss>
