Jump to content

recreating php variables


Liquid Fire

Recommended Posts

I am currently create a very very light weight framework for PHP, I want something that is very simple to use and reduce the very common task(like emails, database, etc...) but does not limit the programmer is any way(only limiting this the the code standard like naming conventions).  I have gotten to a point where i have everything i want and nothing it too limiting(at least to me).  here is the functionality of it:

 

database class(custom built, should support mssql, postgre, and mysql.  only mysql has been tested tho)

email class(wrapper for php mailer)

base_data class(used for an class the access data from a database and provides simple functoin for getting and save to the database)

xhtml class(for create standard html easier, mainly an internal thing for my table class to create a table from an array)

 

That is pretty much it, only other thing is a error class.  but as i am think about some php variable type(mainly string/array), i think will would be good to make my own version so they can become a lot more friendly with oop features.  like a string has a number of function associated with it but wouldn't it be easier to do this instead of the standard way:

 

$string->replace("this", "that");

 

also with array have these types of function. just want to get your guys thought on it.

Link to comment
Share on other sites

well the replace was just an example, the are a number of php command related to string that would be in it include customer command like php does not support by default with predefined functions.  The same thing would go for arrays to, for instead i would be adding a function to insert an element to the front of the array with is no supported by default, as in you need to write your own function.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.