cvs: phpdoc-hu /reference/filesystem/functions basename.xml

[email protected] ("Lajos Cseppent?")
Newsgroups php.doc.hu
Message-ID <cvschappy1170077257@cvsserver>
chappy		Mon Jan 29 13:27:37 2007 UTC

  Added files:                 
    /phpdoc-hu/reference/filesystem/functions	basename.xml 
  Log:
  sync
  

http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/basename.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/filesystem/functions/basename.xml
+++ phpdoc-hu/reference/filesystem/functions/basename.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.6 Maintainer: chappy Status: ready -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
  <refentry id="function.basename">
   <refnamediv>
    <refname>basename</refname>
    <refpurpose>A megadott elérési útvonalból kinyeri a fájlnevet</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Leírás</title>
     <methodsynopsis>
      <type>string</type><methodname>basename</methodname>
      <methodparam><type>string</type><parameter>path</parameter></methodparam>
      <methodparam choice="opt"><type>string</type><parameter>suffix</parameter></methodparam>
     </methodsynopsis>
    <para>
     A megadott karakterlánc tartalmazza a fájl elérési útvonalát.
	 Ez a függvény ebbõl visszaadja a fájl nevét. 
     Ha a fájlnév a <parameter>suffix</parameter> paraméter értékével végzõdik, ezt a
	 függvény levágja.
    </para>
    <para>
     Windows alatt a perjel (<literal>/</literal>) és a fordított perjel 
     (<literal>\</literal>) is használható könyvtárelválasztó karakterként.
     Más környezetekben, csak a sima perjel 
     (<literal>/</literal>) használható.
    </para>
    <para>
     <example>
      <title><function>basename</function> példa</title>
      <programlisting role="php">
<![CDATA[
<?php
$path = "/home/httpd/html/index.php";
$file = basename($path);        // $file értéke "index.php"
$file = basename($path, ".php"); // $file értéke "index"
?>
]]>
      </programlisting>
     </example>
    </para>
    <note>
     <para>
      A <parameter>suffix</parameter> paraméter PHP 4.1.0-tõl használható.
     </para>
    </note>
    <para>
     Lásd még: <function>dirname</function>.
    </para>
   </refsect1>
  </refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.